Interface IProvidesDirectSelection | Unity Reflect | 1.1.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IProvidesDirectSelection

    Provide access to direct selection

    Namespace: Unity.Labs.EditorXR.Interfaces
    Syntax
    public interface IProvidesDirectSelection : IFunctionalityProvider

    Methods

    GetDirectSelection()

    Returns a dictionary of direct selections

    Declaration
    Dictionary<Transform, DirectSelectionData> GetDirectSelection()
    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()

    Calls OnResetDirectSelectionState on all subscribers to ResetDirectSelectionState

    Declaration
    void ResetDirectSelectionState()

    SubscribeToResetDirectSelectionState(Action)

    Subscribe to ResetDirectSelectionState

    Declaration
    void SubscribeToResetDirectSelectionState(Action callback)
    Parameters
    Type Name Description
    Action callback

    The method that will be called when resetting direct selection state

    UnsubscribeFromResetDirectSelectionState(Action)

    Unsubscribe from ResetDirectSelectionState

    Declaration
    void UnsubscribeFromResetDirectSelectionState(Action callback)
    Parameters
    Type Name Description
    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