mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Add warning to reflect behavior with tool nodes (#2577)
In response to this issue: https://github.com/godotengine/godot/issues/30104
This commit is contained in:
committed by
Rémi Verschelde
parent
4630813101
commit
5402f28f59
@@ -1443,6 +1443,11 @@ placed at the top of the file:
|
||||
func _ready():
|
||||
print("Hello")
|
||||
|
||||
.. warning:: Be cautious when freeing nodes with `queue_free()` or `free()`
|
||||
in a tool script (especially the script's owner itself). As tool
|
||||
scripts run their code in the editor, misusing them may lead to
|
||||
crashing the editor.
|
||||
|
||||
Memory management
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user