Class MARSComponentListEditor | MARS | 1.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class MARSComponentListEditor

    Handles the drawing of a collection of MARSComponent editors in an inspector.

    Inheritance
    Object
    ComponentListEditor<MonoBehaviour>
    MARSComponentListEditor
    Inherited Members
    ComponentListEditor<MonoBehaviour>.k_AllTabs
    ComponentListEditor<MonoBehaviour>.k_ConditionsTab
    ComponentListEditor<MonoBehaviour>.k_ActionsTab
    ComponentListEditor<MonoBehaviour>.k_ForcesTab
    ComponentListEditor<MonoBehaviour>.k_SettingsTab
    ComponentListEditor<MonoBehaviour>.m_BaseEditor
    ComponentListEditor<MonoBehaviour>.m_ComponentList
    ComponentListEditor<MonoBehaviour>.m_SerializedObject
    ComponentListEditor<MonoBehaviour>.m_ComponentProperty
    ComponentListEditor<MonoBehaviour>.m_Editors
    ComponentListEditor<MonoBehaviour>.m_RemoveList
    ComponentListEditor<MonoBehaviour>.beforeDrawComponentInspector
    ComponentListEditor<MonoBehaviour>.afterDrawComponentInspector
    ComponentListEditor<MonoBehaviour>.Init(IComponentList<MonoBehaviour>, SerializedObject)
    ComponentListEditor<MonoBehaviour>.OnGUI()
    ComponentListEditor<MonoBehaviour>.CanDrawSelectedOption(Object, Type, Boolean)
    ComponentListEditor<MonoBehaviour>.SetComponentTabAccordingToAddedType(Type)
    ComponentListEditor<MonoBehaviour>.OnSceneGUI()
    ComponentListEditor<MonoBehaviour>.RemoveComponents(Boolean)
    Namespace: Unity.MARS
    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)

    AddComponentMenuButton()

    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
    Type Description
    Boolean
    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)

    OnUndoRedoPerformed()

    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
    Type Name Description
    Type type
    Int32 id
    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
    Type Description
    Boolean

    Events

    OnComponentPasted

    Declaration
    public event Action OnComponentPasted
    Event Type
    Type Description
    Action
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023