Why does my object have duplicated properties?

Godot Version

4.4.1 Stable

Question

I created a ‘Ship’ class that extends Rigidbody2D. I then created a ‘PlayerShip’ class that extends Ship. The PlayerShip’s properties are defined in the editor. It is also a saved scene.

But when I run the level scene, the PlayerShip has both the properties from the editor under ‘Member’ and a null values under their respective classes.

When I attempt to reference the PlayerShip, I get the null values - not the set values.

It’s seems like I am misunderstanding something. Can you help me figure out what?

Edit: I am getting null values because I am incorrectly referencing one of my globals.

Members shows the current runtime values of the properties. Node shows default values set in the script.

Thank you! That helped me.

1 Like