Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

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

String

base_type

""

bool

editable

true

Resource

edited_resource

bool

toggle_mode

false

Methods

bool

_handle_menu_selected ( int id ) virtual

void

_set_create_options ( Object menu_node ) virtual

PackedStringArray

get_allowed_types ( ) const

void

set_toggle_pressed ( bool pressed )


Signals

resource_changed ( Resource resource )

Emitted when the value of the edited resource was ch