Class MARSComponentListEditor
Handles the drawing of a collection of MARSComponent editors in an inspector.
Inheritance
MARSComponentListEditor
Syntax
public sealed class MARSComponentListEditor : ComponentListEditor<MonoBehaviour>
Constructors
MARSComponentListEditor(Editor)
Declaration
public MARSComponentListEditor(Editor editor)
Parameters
Type |
Name |
Description |
Editor |
editor |
|
Methods
AddComponent(Type)
Declaration
protected override void AddComponent(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Overrides
Unity.MARS.ComponentListEditor<MonoBehaviour>.AddComponent(System.Type)
Declaration
protected override void AddComponentMenuButton()
Overrides
Unity.MARS.ComponentListEditor<MonoBehaviour>.AddComponentMenuButton()
CanPasteComponent(Int32)
Declaration
protected override bool CanPasteComponent(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Returns
Overrides
Unity.MARS.ComponentListEditor<MonoBehaviour>.CanPasteComponent(System.Int32)
Clear()
Declaration
public override void Clear()
Overrides
Unity.MARS.ComponentListEditor<MonoBehaviour>.Clear()
CopyComponent(Int32)
Declaration
protected override void CopyComponent(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Overrides
Unity.MARS.ComponentListEditor<MonoBehaviour>.CopyComponent(System.Int32)
CreateEditor(Object, SerializedProperty, Boolean, Int32)
Declaration
protected override void CreateEditor(Object component, SerializedProperty property, bool forceExpand = false, int index = -1)
Parameters
Type |
Name |
Description |
Object |
component |
|
SerializedProperty |
property |
|
Boolean |
forceExpand |
|
Int32 |
index |
|
Overrides
Unity.MARS.ComponentListEditor<MonoBehaviour>.CreateEditor(UnityEngine.Object, SerializedProperty, System.Boolean, System.Int32)
CreateNewComponent(Type)
Declaration
protected override MonoBehaviour CreateNewComponent(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Type |
Description |
MonoBehaviour |
|
Overrides
Unity.MARS.ComponentListEditor<MonoBehaviour>.CreateNewComponent(System.Type)
Declaration
protected override void OnUndoRedoPerformed()
Overrides
Unity.MARS.ComponentListEditor<MonoBehaviour>.OnUndoRedoPerformed()
PasteComponent(Int32)
Declaration
protected override void PasteComponent(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Overrides
Unity.MARS.ComponentListEditor<MonoBehaviour>.PasteComponent(System.Int32)
RemoveComponent(Int32)
Declaration
protected override void RemoveComponent(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Overrides
Unity.MARS.ComponentListEditor<MonoBehaviour>.RemoveComponent(System.Int32)
ResetComponent(Type, Int32)
Declaration
protected override void ResetComponent(Type type, int id)
Parameters
Overrides
Unity.MARS.ComponentListEditor<MonoBehaviour>.ResetComponent(System.Type, System.Int32)
SupportsType(Type)
Declaration
public static bool SupportsType(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Events
OnComponentPasted
Declaration
public event Action OnComponentPasted
Event Type