We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee2bd1b commit 3141668Copy full SHA for 3141668
tutorials/plugins/running_code_in_the_editor.rst
@@ -777,6 +777,14 @@ If you are using :ref:`EditorScript <class_EditorScript>`:
777
node.Owner = GetScene();
778
}
779
780
+.. note::
781
+
782
+ Changes made by tool scripts and EditorScript (such as adding nodes or modifying properties)
783
+ do **not** automatically mark the scene as unsaved. To show the asterisk ``(*)``
784
+ and prevent accidental data loss, call
785
+ :ref:`EditorInterface.mark_scene_as_unsaved() <class_EditorInterface_method_mark_scene_as_unsaved>`
786
+ after modifications, or use :ref:`EditorUndoRedoManager <class_EditorUndoRedoManager>` for undo support.
787
788
.. warning::
789
790
Using ``@tool`` improperly can yield many errors. It is advised to first
0 commit comments