scene with @tool does not reload nodes after mechanical reload

Godot Version

4.2.2

Question

I have a scene with a procedural generated voxel terrain. After i added @tool in the script, scene has no reaction on the changes in the script, in the viewport and in the game too. Like, i change the chunk size, but it does not changes in the viewport and in the game too.

1 Like

You need to define a set function to update it after it is changed in the inspector.

You also may need different logic in editor vs in game, use this

Engine.is_editor_hint()