Godot Version
4.3.stable.nixpkgs
Question
I’m making a game and I’d like to make some properties of subnodes of a scene accessible as properties of the scene itself so that they can be assigned in each scene using it to different values. Currently, I have the following code:
@export var west_wall_pos: float:
set(new_value):
$westWall.position.x = new_value
get:
return $westWall.x
(same for other ones)
It seems to work (according to the debug output; the game doesn’t show anything, but this may be unrelated), but the editor doesn’t show it properly. Is there a better way to do this?