+1 vote

I've got a scene with tool mode scripts (using the tool keyword) attached to some nodes .

When I edit those scripts I have to close and re-open the scene for them to be updated.

Is there a shortcut or something to quickly reload the scene when I edit those scripts ?

asked Oct 29, 2018 in Engine by co42 (13 points)

1 Answer

0 votes

When you want to update a variable in tool mode, you have to use a function setget.
Ex:

export var range setget set_maximum_range

func set_maximum_range(value):
    range = value
answered Oct 29, 2018 by gtkampos (188 points)

I'm modifying the logic of the script (the _ready function for example), not just the value of a property.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.