tutorials/scripting/resources #132
Replies: 7 comments 1 reply
-
Another word of warning related to how If you're in development and have not shipped a version of your project yet, you can delete the User Data with the corrupt persisted resource by navigating to |
Beta Was this translation helpful? Give feedback.
-
When using C#, then the |
Beta Was this translation helpful? Give feedback.
-
In C#, if you will be using a custom resource in a node that will be running in the editor (through
|
Beta Was this translation helpful? Give feedback.
-
Resources need not be used only as data containers. They can also provide nodes with on-demand algorithm implementations. That is, Resources can be used to implement the strategy pattern. |
Beta Was this translation helpful? Give feedback.
-
When exporting a game, resource files are often renamed to |
Beta Was this translation helpful? Give feedback.
-
I exit the scene and the resources that were loaded are not freed. I even exit the game (on Android) and reopen it and I still haven't entered the scene that has the resources, but the memory usage is still high due to the resources of that scene. And using CACHE_MODE_IGNORE and CACHE_MODE_IGNORE_DEEP during load doesn't help. |
Beta Was this translation helpful? Give feedback.
-
As i strugled multiple Times with this, in order to use saved resources you need to have a simple constructor, else the scripts don't get atached to the resource files, so make sure .new() is a valid constructor to solve this problem |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
tutorials/scripting/resources
Nodes and resources: Up to this tutorial, we focused on the Node class in Godot as that's the one you use to code behavior and most of the engine's features rely on it. There is another datatype th...
https://docs.godotengine.org/en/stable/tutorials/scripting/resources.html
Beta Was this translation helpful? Give feedback.
All reactions