![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Macryc |
Hi. I’ve been experimenting with the JSON save/load method which kind of works but only if a node already exists in the tree.
What about nodes which get ‘spawned’ (ie, instance + add_child) at runtime? Like when the player creates a building (in a city simulator type of game): the building is a node that gets loaded, instanced, and added at a certain position in 3D. How does one go about saving that instance in that position?
The JSON file does include their names and position coordinates from previous saves, but because when the game starts they have not been instanced yet, they’re not getting loaded.