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

    Class XRUIPointer

    Inheritance
    Object
    XRUIPointer
    Namespace: UnityEngine.XR.Interaction.Toolkit.UI
    Syntax
    public class XRUIPointer : MonoBehaviour, ILineRenderable

    Properties

    controller

    This is the controller that drives the input state of this pointer.

    Declaration
    public XRController controller { get; set; }
    Property Value
    Type Description
    XRController

    Methods

    GetLinePoints(ref Vector3[], ref Int32)

    Declaration
    public bool GetLinePoints(ref Vector3[] linePoints, ref int noPoints)
    Parameters
    Type Name Description
    Vector3[] linePoints
    Int32 noPoints
    Returns
    Type Description
    Boolean

    GetTrackedDeviceModel()

    Declaration
    public TrackedDeviceModel GetTrackedDeviceModel()
    Returns
    Type Description
    TrackedDeviceModel

    TryGetHitInfo(ref Vector3, ref Vector3, ref Int32, ref Boolean)

    Declaration
    public bool TryGetHitInfo(ref Vector3 position, ref Vector3 normal, ref int positionInLine, ref bool isValidTarget)
    Parameters
    Type Name Description
    Vector3 position
    Vector3 normal
    Int32 positionInLine
    Boolean isValidTarget
    Returns
    Type Description
    Boolean

    UpdateModel(ref TrackedDeviceModel)

    Declaration
    public void UpdateModel(ref TrackedDeviceModel model)
    Parameters
    Type Name Description
    TrackedDeviceModel model
    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