Reload a scene in the editor when a tool mode script is modified

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By co42

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 ?

:bust_in_silhouette: Reply From: gtkampos

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

export var range setget set_maximum_range

func set_maximum_range(value):
    range = value

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

co42 | 2018-10-30 14:34

1 Like
:bust_in_silhouette: Reply From: Whalesstate

i know this is old but here’s how to do it

in the scene menu there’s a button [ Reload Saved Scene] , you can open Editor Settings - Shortcuts and search it then assign [ alt + R ] to it

1 Like