EditorScriptPicker
Inherits: EditorResourcePicker < HBoxContainer < BoxContainer < Container < Control < CanvasItem < Actor < Object
Gobu editor’s control for selecting the script property of a Actor.
Description
Section titled “Description”Similar to EditorResourcePicker this Control actor is used in the editor’s Inspector dock, but only to edit the script property of a Actor. Default options for creating new resources of all possible subtypes are replaced with dedicated buttons that open the “Attach Actor Script” dialog. Can be used with EditorInspectorPlugin to recreate the same behavior.
Note: You must set the script_owner for the custom context menu items to work.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| Actor | script_owner |
Property descriptions
Section titled “Property descriptions”script_owner
Section titled “script_owner”Actor script_owner
Setter/getter: set_script_owner(), get_script_owner()
The owner Actor of the script property that holds the edited resource.