Ver Fonte

Add warning to reflect behavior with tool nodes (#2577)

In response to this issue: https://github.com/godotengine/godot/issues/30104
Cameron Reikes há 6 anos atrás
pai
commit
5402f28f59
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      getting_started/scripting/gdscript/gdscript_basics.rst

+ 5 - 0
getting_started/scripting/gdscript/gdscript_basics.rst

@@ -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
 ~~~~~~~~~~~~~~~~~