docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IUIInteractorRegistrationHandler

    A IUIInteractor that gets notified when registered with the XR UI Input Module.

    Inherited Members
    IUIInteractor.UpdateUIModel(ref TrackedDeviceModel)
    IUIInteractor.TryGetUIModel(out TrackedDeviceModel)
    Namespace: UnityEngine.XR.Interaction.Toolkit.UI
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public interface IUIInteractorRegistrationHandler : IUIInteractor

    Methods

    OnRegistered(UIInteractorRegisteredEventArgs)

    The XRUIInputModule calls this method when this UI interactor is registered with it.

    Declaration
    void OnRegistered(UIInteractorRegisteredEventArgs args)
    Parameters
    Type Name Description
    UIInteractorRegisteredEventArgs args

    Event data containing the XR UI Input Module that registered this UI interactor.

    Remarks

    args is only valid during this method call, do not hold a reference to it.

    See Also
    RegisterInteractor(IUIInteractor)

    OnUnregistered(UIInteractorUnregisteredEventArgs)

    The XRUIInputModule calls this method when this UI interactor is unregistered from it.

    Declaration
    void OnUnregistered(UIInteractorUnregisteredEventArgs args)
    Parameters
    Type Name Description
    UIInteractorUnregisteredEventArgs args

    Event data containing the XR UI Input Module that unregistered this UI interactor.

    Remarks

    args is only valid during this method call, do not hold a reference to it.

    See Also
    UnregisterInteractor(IUIInteractor)

    See Also

    XRUIInputModule
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)