You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/classes/EditorInterface.xml
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -266,6 +266,13 @@
266
266
Returns [code]true[/code] if the 3D editor currently has snapping mode enabled, and [code]false[/code] otherwise.
267
267
</description>
268
268
</method>
269
+
<methodname="is_object_edited"qualifiers="const">
270
+
<returntype="bool" />
271
+
<paramindex="0"name="object"type="Object" />
272
+
<description>
273
+
Returns [code]true[/code] if the object has been marked as edited through [method set_object_edited].
274
+
</description>
275
+
</method>
269
276
<methodname="is_playing_scene"qualifiers="const">
270
277
<returntype="bool" />
271
278
<description>
@@ -490,6 +497,16 @@
490
497
Sets the editor's current main screen to the one specified in [param name]. [param name] must match the title of the tab in question exactly (e.g. [code]2D[/code], [code]3D[/code], [code skip-lint]Script[/code], [code]Game[/code], or [code]AssetLib[/code] for default tabs).
491
498
</description>
492
499
</method>
500
+
<methodname="set_object_edited">
501
+
<returntype="void" />
502
+
<paramindex="0"name="object"type="Object" />
503
+
<paramindex="1"name="edited"type="bool" />
504
+
<description>
505
+
If [param edited] is [code]true[/code], the object is marked as edited.
506
+
[b]Note:[/b] This is primarily used by the editor for [Resource] based objects to track their modified state. For example, any changes to an open scene, a resource in the inspector, or an edited script will cause this method to be called with [code]true[/code]. Saving the scene, script, or resource resets the edited state by calling this method with [code]false[/code].
507
+
[b]Note:[/b] Each call to this method increments the object's edited version. This is used to track changes in the editor and to trigger when thumbnails should be regenerated for resources.
0 commit comments