Godot Version
Godot 4
Question
So, I want to use multiple scenes but those are the same scene but with different properties, like the height is different. How can I do that, or is there any other way to do that?
Godot 4
So, I want to use multiple scenes but those are the same scene but with different properties, like the height is different. How can I do that, or is there any other way to do that?
if you have an @export variable like height, you can then set the value to be different for each scene.
Then the question is, you can choose to inherit from the base scene or just duplicate the scene.
Or you can reuse the same scene and set the height to be different inside of its _ready()
method.
I actually want it to be editable in the level editor by dragging up and down, is it possible?
If you inherit from the base scene, then you will have all the nodes that your base scene has including the scripts for it.
What you then can do is adjust all export variables, properties within your inherited nodes and also extend the script so that it behaves differently from the base scene. What you cannot do is remove nodes from the inherited scene (but you can hide them from view) or change the order of your nodes inside your SceneNode.
I actually want it to be editable in the level editor by dragging up and down
I don’t think I understand you, you have objects inside your Scene that you want to move around by dragging? This is possible when you inherit the base scene, you basically just set the positions of the nodes.