Hi, i couldn't find a satisfying answer and after reading the Q&A i will jump directly into the question:
Code snippet:
const Tool : PackedScene = preload("res://scene/tool_0.tscn")
When i move the file "tool_0.tscn" via "Move To.." the code path will not be updated.
To fix this i used the next snippet (Drag & Drop the "tool0.tscn" in the editor) so i can move the "tool0.tscn" file around as i want.
export (PackedScene) var Tool : PackedScene = null
At last i made an export Array, defined every element of it as an object in the editor and moved some Scene files via Drag & Drop into it.
export (Array) var Tool : Array = []

- Is there a way to define an Array as "PoolObjectArray",
"PackedSceneArray" or something like that?
- I can't use "preload" in "export", does this impact performance?
- I read through many topics like best practice, code architecture, dynamic resources etc., but could not find a good answer. Is there a reason not to handle it like that?