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.
Checking the stable version of the documentation...
EditorResourcePicker¶
Inherits: HBoxContainer < BoxContainer < Container < Control < CanvasItem < Node < Object
Inherited By: EditorScriptPicker
Godot editor's control for selecting Resource type properties.
Description¶
This Control node is used in the editor's Inspector dock to allow editing of Resource type properties. It provides options for creating, loading, saving and converting resources. Can be used with EditorInspectorPlugin to recreate the same behavior.
Note: This Control does not include any editor for the resource, as editing is controlled by the Inspector dock itself or sub-Inspectors.
Properties¶
|
||
|
||
|
Methods¶
_handle_menu_selected ( int id ) virtual |
|
void |
_set_create_options ( Object menu_node ) virtual |
get_allowed_types ( ) const |
|
void |
set_toggle_pressed ( bool pressed ) |
Signals¶
resource_changed ( Resource resource )
Emitted when the value of the edited resource was changed.
resource_selected ( Resource resource, bool inspect )
Emitted when the resource value was set and user clicked to edit it. When inspect
is true
, the signal was caused by the context menu "Edit" or "Inspect" option.
Property Descriptions¶
String base_type = ""
void set_base_t