class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCounted EditorInspectorPlugin
Plugin for adding custom property editors on the inspector.

EditorInspectorPlugin allows adding custom property editors to EditorInspector.

When an object is edited, the _can_handle function is called and must return true if the object type is supported.

If supported, the function _parse_begin will be called, allowing to place custom controls at the beginning of the class.

Subsequently, the _parse_category and _parse_property are called for every category and property. They offer the ability to add custom controls to the inspector too.

Finally, _parse_end will be called.

On each of these calls, the "add" functions can be called.

To use EditorInspectorPlugin, register it using the EditorPlugin.add_inspector_plugin method first.

bool _can_handle<>( Object object=, object:Object=, ):bool

Returns true if this object can be handled by this plugin.

void _parse_begin<>( Object object=, object:Object=, ):void

Called to allow adding controls at the beginning of the property list for object.

void _parse_category<>( Object object=, object:Object=, String category=, category:String=, ):void

Called to allow adding controls at the beginning of a category in the property list for object.

void _parse_end<>( Object object=, object:Object=, ):void

Called to allow adding controls at the end of the property list for object.

void _parse_group<>( Object object=, object:Object=, String group=, group:String=, ):void

Called to allow adding controls at the beginning of a group or a sub-group in the property list for object.

bool _parse_property<>( Object object=, object:Object=, Variant=, Variant:=, String name=, name:String=, PropertyHint hint_type=, hint_type:PropertyHint=, String hint_string=, hint_string:String=, BitField=, BitField:=, bool wide=, wide:bool=, ):bool

Called to allow adding property-specific editors to the property list for object. The added editor control must extend EditorProperty. Returning true removes the built-in editor for this property, otherwise allows to insert a custom editor before the built-in one.

void add_custom_control<>( Control control=, control:Control=, ):void

Adds a custom control, which is not necessarily a property editor.

void add_property_editor<>( String property=, property:String=, Control editor=, editor:Control=, bool add_to_end=false, add_to_end:bool=false, ):void

Adds a property editor for an individual property. The editor control must extend EditorProperty.

void add_property_editor_for_multiple_properties<>( String label=, label:String=, PackedStringArray properties=, properties:PackedStringArray=, Control editor=, editor:Control=, ):void

Adds an editor that allows modifying multiple properties. The editor control must extend EditorProperty.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...