Class XRUIInputModule | XR Interaction Toolkit | 0.9.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class XRUIInputModule

    Inheritance
    Object
    UIInputModule
    XRUIInputModule
    Inherited Members
    UIInputModule.uiCamera
    UIInputModule.Process()
    UIInputModule.clickSpeed
    UIInputModule.moveDeadzone
    UIInputModule.repeatDelay
    UIInputModule.repeatRate
    UIInputModule.trackedDeviceDragThresholdMultiplier
    Namespace: UnityEngine.XR.Interaction.Toolkit.UI
    Syntax
    public class XRUIInputModule : UIInputModule

    Properties

    maxRaycastDistance

    Declaration
    public float maxRaycastDistance { get; set; }
    Property Value
    Type Description
    Single

    Methods

    Awake()

    Declaration
    protected override void Awake()

    DoProcess()

    Declaration
    protected override void DoProcess()
    Overrides
    UIInputModule.DoProcess()

    GetTrackedDeviceModel(IUIInteractable, out TrackedDeviceModel)

    Retrieves the UI Model for a selected Interactable.

    Declaration
    public bool GetTrackedDeviceModel(IUIInteractable interactable, out TrackedDeviceModel model)
    Parameters
    Type Name Description
    IUIInteractable interactable

    The Interactable you want the model for.

    TrackedDeviceModel model

    The returned model that reflects the UI state of the interactable.

    Returns
    Type Description
    Boolean

    True if the model was able to retrieved, false otherwise.

    OnEnable()

    Declaration
    protected override void OnEnable()

    RegisterInteractable(IUIInteractable)

    Register an Interactable with the UI system. Calling this will enable it to start interacting with UI.

    Declaration
    public void RegisterInteractable(IUIInteractable interactable)
    Parameters
    Type Name Description
    IUIInteractable interactable

    The IUIInteractable to use.

    UnregisterInteractable(IUIInteractable)

    Unregisters an Interactable with the UI system. This cancels all UI Interaction and makes the IUIInteractable no longer able to affect UI.

    Declaration
    public void UnregisterInteractable(IUIInteractable interactable)
    Parameters
    Type Name Description
    IUIInteractable interactable

    The IUIInteractable to stop using.

    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