Class GenericEditor
Default implementation of the inspector used when no specified inspector is provided for the type. Inspector displays GUI for all the inspectable fields in the object.
Inheritance
System.Object
FlaxEditor.CustomEditors.CustomEditor
GenericEditor
Namespace: FlaxEditor.CustomEditors.Editors
Assembly: FlaxEngine.CSharp.dll
Syntax
public class GenericEditor : CustomEditor
Constructors
GenericEditor()
Declaration
public GenericEditor()
Methods
Deinitialize()
Declaration
protected override void Deinitialize()
Overrides
FlaxEditor.CustomEditors.CustomEditor.Deinitialize()
EvaluateVisibleIf(LayoutElementsContainer, GenericEditor.ItemInfo, Int32)
Evaluate the VisibleIfAttribute cache for a given property item.
Declaration
protected virtual void EvaluateVisibleIf(LayoutElementsContainer itemLayout, GenericEditor.ItemInfo item, int labelIndex)
Parameters
|
FlaxEditor.CustomEditors.LayoutElementsContainer
itemLayout
The item layout. |
|
GenericEditor.ItemInfo
item
The item. |
|
System.Int32
labelIndex
The label index. |
GetItemsForType(ScriptType)
Gets the items for the type
Declaration
protected virtual List<GenericEditor.ItemInfo> GetItemsForType(ScriptType type)
Parameters
|
FlaxEditor.Scripting.ScriptType
type
The type. |
Returns
|
System.Collections.Generic.List<GenericEditor.ItemInfo>
The items. |
GetItemsForType(ScriptType, Boolean, Boolean, Boolean)
Gets the items for the type
Declaration
public static List<GenericEditor.ItemInfo> GetItemsForType(ScriptType type, bool useProperties, bool useFields, bool usePropertiesWithoutSetter = false)
Parameters
|
FlaxEditor.Scripting.ScriptType
type
The type. |
|
System.Boolean
useProperties
True if use type properties. |
|
System.Boolean
useFields
True if use type fields. |
|
System.Boolean
usePropertiesWithoutSetter
True if use type properties that have only getter method without setter method (aka read-only). |
Returns
|
System.Collections.Generic.List<GenericEditor.ItemInfo>
The items. |
GetLabelIndex(LayoutElementsContainer, GenericEditor.ItemInfo)
Get the label index.
Declaration
protected virtual int GetLabelIndex(LayoutElementsContainer itemLayout, GenericEditor.ItemInfo item)
Parameters
|
FlaxEditor.CustomEditors.LayoutElementsContainer
itemLayout
The item layout. |
|
GenericEditor.ItemInfo
item
The item. |
Returns
|
System.Int32
The label index. |
Initialize(LayoutElementsContainer)
Declaration
public override void Initialize(LayoutElementsContainer layout)
Parameters
|
FlaxEditor.CustomEditors.LayoutElementsContainer
layout
|
Overrides
FlaxEditor.CustomEditors.CustomEditor.Initialize(FlaxEditor.CustomEditors.LayoutElementsContainer)
Refresh()
Declaration
public override void Refresh()
Overrides
FlaxEditor.CustomEditors.CustomEditor.Refresh()
SpawnProperty(LayoutElementsContainer, ValueContainer, GenericEditor.ItemInfo)
Spawns the property for the given item.
Declaration
protected virtual void SpawnProperty(LayoutElementsContainer itemLayout, ValueContainer itemValues, GenericEditor.ItemInfo item)
Parameters
|
FlaxEditor.CustomEditors.LayoutElementsContainer
itemLayout
The item layout. |
|
FlaxEditor.CustomEditors.ValueContainer
itemValues
The item values. |
|
GenericEditor.ItemInfo
item
The item. |