Currently i am face the problem of require to reload scene to properly run tool script.
I proposal to detect script change and reload it in background. End user see result as soon as possible. It's improve for rapid development and prototyping.
Just bind "reload scene" to a keybind and use that, it's pretty quick.
Sounds like a workaround, but not a solve issue by natural way.
Maybe you can suggest how to do this ? I don't see any reload scene in the shortcut configuration...
Thanks.
Only one reload scene to start properly work tool script is require, it's not a problem.
Tool script already works fine for changing later.
I don't understand your last comment or why you closed this issue. I would also like hot reloading of tool scripts.
Firstly i make incorrect assumption what tool script changes apply only after reload. The tool script work on change already, but on the first attach/detach it to the node you should reload scene. When i start to do this task i found what it's not a huge problem to reload scene after you attach a new script (or delete it), it's a workaround. I am reopen task. Maybe should create a separate task about hotkey for reopen scene ?
More editor actions can now have shortcuts assigned (such as Revert Scene or Export).
Found in the changelog for 3.2. I remember using this, but I can't find it anywhere now... Maybe I was using the unstable builds.
EDIT: Yup, I used the unstable builds. You can close this, as it is fixed in master.
I would also still like hot reloading for tool scripts. I use tool script extensively for making custom components inside the editor. It takes me a lot of time to keep reloading a lot of time, and it doesn't seem to happen reliably at all.
+1 for the issue.
I just ran into this issue as well. I had to close and reload the engine to get a tool script to work in 3.2.1.
Most helpful comment
I just ran into this issue as well. I had to close and reload the engine to get a tool script to work in 3.2.1.