Class UsesDirectSelectionMethods | Unity Reflect | 1.1.0-preview.6
docs.unity.cn
    Show / Hide Table of Contents

    Class UsesDirectSelectionMethods

    Inheritance
    Object
    UsesDirectSelectionMethods
    Namespace: Unity.Labs.EditorXR.Interfaces
    Syntax
    public static class UsesDirectSelectionMethods

    Methods

    GetDirectSelection(IUsesDirectSelection)

    Returns a dictionary of direct selections

    Declaration
    public static Dictionary<Transform, DirectSelectionData> GetDirectSelection(this IUsesDirectSelection user)
    Parameters
    Type Name Description
    IUsesDirectSelection user

    The functionality user

    Returns
    Type Description
    Dictionary<Transform, DirectSelectionData>

    Dictionary (K,V) where K = rayOrigin used to select the object and V = info about the direct selection

    ResetDirectSelectionState(IUsesDirectSelection)

    Calls OnResetDirectSelectionState on all subscribers to ResetDirectSelectionState

    Declaration
    public static void ResetDirectSelectionState(this IUsesDirectSelection user)
    Parameters
    Type Name Description
    IUsesDirectSelection user

    The functionality user

    SubscribeToResetDirectSelectionState(IUsesDirectSelection, Action)

    Subscribe to ResetDirectSelectionState

    Declaration
    public static void SubscribeToResetDirectSelectionState(this IUsesDirectSelection user, Action callback)
    Parameters
    Type Name Description
    IUsesDirectSelection user

    The functionality user

    Action callback

    The method that will be called when resetting direct selection state

    UnsubscribeFromResetDirectSelectionState(IUsesDirectSelection, Action)

    Calls OnResetDirectSelectionState on all implementors of IUsesDirectSelection

    Declaration
    public static void UnsubscribeFromResetDirectSelectionState(this IUsesDirectSelection user, Action callback)
    Parameters
    Type Name Description
    IUsesDirectSelection user

    The functionality user

    Action callback

    The method that was originally subscribed

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX