Replies: 1 comment 1 reply
-
I believe there's InstancePlaceholder for this particular scenario (right-click instanced scene in the Scene tree dock > Load as Placeholder). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to discuss about a problem i've been facing using the Godot Engine.
Thers is no option to reference project files in the Engine. There is no built-in resource to reference a project file without loading it on RAM.
It can lead to various problems while developing a game (mainly on PackedScenes, which are usually very big in size):
A fix to this problem could be loading them at runtime specifying the path in the code (hardcoded), or pass the path to an exported property, but unlike resources it's impossible to keep track of moved or renamed files; you need to manually update any of the referenced paths, and this could be difficult to do (expecially when moving a large amount of files into a new folder) and can lead to null references problems.
I suggest to create a new type of resource which only keeps a String referencing a file/directory (and DOESN'T load the resource/scene automatically at node instancing); this should be able to track the file position/name and update the references when a file gets renamed or moved on the Editor (as it happens with Resources)
Beta Was this translation helpful? Give feedback.
All reactions