Godot Version
4,5
Question
How do i create, edit and save scence during runtime in an office presentation style where i can to add scenes and at textfields / pictures to those scene at will?
4,5
How do i create, edit and save scence during runtime in an office presentation style where i can to add scenes and at textfields / pictures to those scene at will?
To save a resource (“PackedScene”) you can use the ResourceSaver:
var scene = PackedScene.new() # or refer to existing packedscene
ResourceSaver.save(scene, scene.resource_path) # if the packedscene is new you need to give it a valid path
For this to work, you need to put the scene inside the scene-variable