Expose set_edited and is_edited on EditorInterface
This commit is contained in:
@@ -266,6 +266,13 @@
|
||||
Returns [code]true[/code] if the 3D editor currently has snapping mode enabled, and [code]false[/code] otherwise.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_object_edited" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="object" type="Object" />
|
||||
<description>
|
||||
Returns [code]true[/code] if the object has been marked as edited through [method set_object_edited].
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_playing_scene" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
@@ -490,6 +497,16 @@
|
||||
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).
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_object_edited">
|
||||
<return type="void" />
|
||||
<param index="0" name="object" type="Object" />
|
||||
<param index="1" name="edited" type="bool" />
|
||||
<description>
|
||||
If [param edited] is [code]true[/code], the object is marked as edited.
|
||||
[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].
|
||||
[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.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_plugin_enabled">
|
||||
<return type="void" />
|
||||
<param index="0" name="plugin" type="String" />
|
||||
|
||||
Reference in New Issue
Block a user