Show / Hide Table of Contents

    Class InteractableReceiverListInspector

    Inheritance
    Object
    InteractableReceiverListInspector
    InteractableReceiverInspector
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class InteractableReceiverListInspector : UnityEditor.Editor

    Fields

    eventList

    Declaration
    protected List<InteractableEvent> eventList
    Field Value
    Type Description
    List<InteractableEvent>

    eventOptions

    Declaration
    protected InteractableTypesContainer eventOptions
    Field Value
    Type Description
    InteractableTypesContainer

    indentOnSectionStart

    Declaration
    protected static int indentOnSectionStart
    Field Value
    Type Description
    Int32

    Methods

    AddEvent(Int32)

    Declaration
    protected virtual void AddEvent(int index)
    Parameters
    Type Name Description
    Int32 index

    ChangeEvent(Int32[], SerializedProperty)

    Invoked when the event is changed.

    Declaration
    protected virtual void ChangeEvent(int[] indexArray, SerializedProperty prop = null)
    Parameters
    Type Name Description
    Int32[] indexArray

    A two-element sized index array where the first element is the index of the event in the event list, and the second is the new event handler class that was selected.

    SerializedProperty prop

    OnEnable()

    Declaration
    protected virtual void OnEnable()

    OnInspectorGUI()

    Declaration
    public override void OnInspectorGUI()

    RemoveEvent(Int32, SerializedProperty)

    Declaration
    protected virtual void RemoveEvent(int index, SerializedProperty prop = null)
    Parameters
    Type Name Description
    Int32 index
    SerializedProperty prop

    RenderEventSettings(SerializedProperty, Int32, InteractableTypesContainer, InspectorUIUtility.MultiListButtonEvent, InspectorUIUtility.ListButtonEvent)

    Render event properties for the given event item. If item has been removed, returns true. False otherwise

    Declaration
    public static bool RenderEventSettings(SerializedProperty eventItem, int index, InteractableTypesContainer options, InspectorUIUtility.MultiListButtonEvent changeEvent, InspectorUIUtility.ListButtonEvent removeEvent)
    Parameters
    Type Name Description
    SerializedProperty eventItem

    serialized property of the event item to render properties from

    Int32 index

    index of event item in higher order list

    InteractableTypesContainer options

    Event type options

    InspectorUIUtility.MultiListButtonEvent changeEvent

    Function to call if event properties have changed

    InspectorUIUtility.ListButtonEvent removeEvent

    Function to call if event requested to be removed

    Returns
    Type Description
    Boolean

    If item has been removed, returns true. False otherwise

    RenderInspectorHeader()

    Declaration
    protected virtual void RenderInspectorHeader()

    SetupEventOptions()

    Declaration
    protected virtual void SetupEventOptions()
    Back to top Generated by DocFX