Class UsesDirectSelectionMethods | Unity Reflect | 1.1.0-preview.6
docs.unity3d.com
    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 © 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