Skip to content
0.2.0-dev Download ZIP
17 lines ·1.1 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="EditorScriptPicker" inherits="EditorResourcePicker" api_type="editor" 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 <members>
13 <member name="script_owner" type="Node" setter="set_script_owner" getter="get_script_owner">
14 The owner [Node] of the script property that holds the edited resource.
15 </member>
16 </members>
17</class>