system
1
|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
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 ?
system
2
|
|
|
|
Reply From: |
gtkampos |
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
I’m modifying the logic of the script (the _ready
function for example), not just the value of a property.
system
3
|
|
|
|
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