EditorScriptPicker.xml 1.1 KB

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="EditorScriptPicker" inherits="EditorResourcePicker" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Godot editor's control for selecting the [code]script[/code] property of a [Node].
  5. </brief_description>
  6. <description>
  7. Similar to [EditorResourcePicker] this [Control] node is used in the editor's Inspector dock, but only to edit the [code]script[/code] property of a [Node]. Default options for creating new resources of all possible subtypes are replaced with dedicated buttons that open the "Attach Node Script" dialog. Can be used with [EditorInspectorPlugin] to recreate the same behavior.
  8. [b]Note:[/b] You must set the [member script_owner] for the custom context menu items to work.
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. </methods>
  14. <members>
  15. <member name="script_owner" type="Node" setter="set_script_owner" getter="get_script_owner">
  16. The owner [Node] of the script property that holds the edited resource.
  17. </member>
  18. </members>
  19. <constants>
  20. </constants>
  21. </class>