CookieLoader 0.1.0
dotnet add package CookieLoader --version 0.1.0
NuGet\Install-Package CookieLoader -Version 0.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CookieLoader" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CookieLoader --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CookieLoader, 0.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CookieLoader as a Cake Addin #addin nuget:?package=CookieLoader&version=0.1.0 // Install CookieLoader as a Cake Tool #tool nuget:?package=CookieLoader&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CookieLoader
The Godot's missing resource loader.
I ate many cookies, so I named it CookieLoader.
Example
public partial class App : Node2D
{
[Export] private ProgressBar _multiAssetLoaderProgressBar;
[Export] private ProgressBar _assetLoaderProgressBar;
private MultiAssetLoader _multiAssetLoader;
private AssetLoader<PackedScene> _assetLoader;
public override void _Ready()
{
_multiAssetLoader = new MultiAssetLoader(
[
"res://ShouldLoadScene.tscn",
"res://ShouldLoadScene.tscn",
"res://ShouldLoadScene.tscn",
],
2f
);
_assetLoader = new AssetLoader<PackedScene>(
"res://ShouldLoadScene.tscn",
2f
);
_multiAssetLoader.OnLoadComplete += () =>
GD.Print("[MultiAssetLoader] Load Complete");
_multiAssetLoader.OnSingleAssetLoadComplete += loadItem =>
{
GD.Print($"[MultiAssetLoader] Single Asset Load Complete: {loadItem.Path}");
AddChild(((PackedScene)loadItem.Resource)?.Instantiate());
};
_assetLoader.OnAssetLoadComplete += scene =>
{
AddChild(scene.Instantiate());
GD.Print("[AssetLoader] Asset Load Complete");
};
_assetLoader.OnLoadComplete += () => GD.Print("[AssetLoader] Load Complete");
_multiAssetLoader.Start();
_assetLoader.Start();
}
public override void _Process(double delta)
{
if (_multiAssetLoader == null) return;
_multiAssetLoader.Process((float)delta);
_assetLoader.Process((float)delta);
_assetLoaderProgressBar.Value = _assetLoader.GetTotalProgress() * 100f;
_multiAssetLoaderProgressBar.Value = _multiAssetLoader.GetTotalProgress() * 100f;
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- GodotSharp (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.0 | 73 | 1/25/2025 |