Godot Version
4.3-mono
Question
Is there any way to load a .PCK with C#?
I’m upgrading my project to C# but I don’t know whether the mod loader which is based on load_resource_pack
works with C#.
4.3-mono
Is there any way to load a .PCK with C#?
I’m upgrading my project to C# but I don’t know whether the mod loader which is based on load_resource_pack
works with C#.
Is in documentation.
private void YourFunction()
{
// This could fail if, for example, mod.pck cannot be found.
var success = ProjectSettings.LoadResourcePack("res://mod.pck");
if (success)
{
// Now one can use the assets as if they had them in the project from the start.
var importedScene = (PackedScene)ResourceLoader.Load("res://mod_scene.tscn");
}
}