Class PanelEditor
Base class to create a property panel for the editor.
Namespace: Evergine.Editor.Extension
Assembly: Evergine.Editor.Extension.dll
Syntax
public class PanelEditor
Fields
propertyPanelContainer
The properties container for this instance of the panel.
Declaration
protected IPanelPropertyContainer propertyPanelContainer
Field Value
Type | Description |
---|---|
IPanelPropertyContainer |
Properties
Instance
Gets the instance associated with this panel.
Declaration
public object Instance { get; }
Property Value
Type | Description |
---|---|
object |
Methods
GenerateUI()
Generates the UI for this panel.
Declaration
public virtual void GenerateUI()
GetMembersForType(Type)
Gets the public fields and properties of a type. These members are the default shown properties of a type.
Declaration
public static Dictionary<string, MemberInfo> GetMembersForType(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type. |
Returns
Type | Description |
---|---|
Dictionary<string, MemberInfo> | The collection of default members that will be shown in a panel. |
Load(IPanelPropertyContainer, object)
Initializes this instance with the parameter.
Declaration
public void Load(IPanelPropertyContainer propertyPanelContainer, object instance)
Parameters
Type | Name | Description |
---|---|---|
IPanelPropertyContainer | propertyPanelContainer | The property panel container of this panel editor. |
object | instance | The instance associated with this panel. |
Loaded()
Occurs when this panel is ready to add properties. You can override it to modify the panel properties.
Declaration
protected virtual void Loaded()