Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

EditorScriptPicker

Inherits: EditorResourcePicker < HBoxContainer < BoxContainer < Container < Control < CanvasItem < Node < Object

Godot editor's control for selecting the script property of a Node.

Description

Similar to EditorResourcePicker this Control node is used in the editor's Inspector dock, but only to edit the script 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.

Note: You must set the script_owner for the custom context menu items to work.

Properties

Node

script_owner


Property Descriptions

Node script_owner

  • void set_script_owner(value: Node)

  • Node get_script_owner()

The owner Node of the script property that holds the edited resource.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.