EditorScriptPicker

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

Control del editor de Godot para seleccionar la propiedad script de un Node.

Descripción

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.

Propiedades

Node

script_owner


Descripciones de Propiedades

Node script_owner 🔗

  • void set_script_owner(value: Node)

  • Node get_script_owner()

El Node propietario de la propiedad de script que contiene el recurso editado.