Merge pull request #92272 from timothyqiu/add-to-end

Explain `add_to_end` parameter of `add_property_editor()`
This commit is contained in:
Rémi Verschelde 2024-05-23 23:25:55 +02:00
commit 73fdc30783
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@
<param index="2" name="add_to_end" type="bool" default="false" /> <param index="2" name="add_to_end" type="bool" default="false" />
<description> <description>
Adds a property editor for an individual property. The [param editor] control must extend [EditorProperty]. Adds a property editor for an individual property. The [param editor] control must extend [EditorProperty].
There can be multiple property editors for a property. If [param add_to_end] is [code]true[/code], this newly added editor will be displayed after all the other editors of the property whose [param add_to_end] is [code]false[/code]. For example, the editor uses this parameter to add an "Edit Region" button for [member Sprite2D.region_rect] below the regular [Rect2] editor.
</description> </description>
</method> </method>
<method name="add_property_editor_for_multiple_properties"> <method name="add_property_editor_for_multiple_properties">