XRSPACE Developer Console

API - XRHandlerData

Only for Handler use.

Contents

Propertie

  • public Vector3 Accelerometer { get; }

Description Return controller Accelerometer information.


  • public int BatteryLevel { get; }

Description Return controller battery in percent.


  • public XRDeviceType DeviceType { get; }

Description Return Handler device type.


  • public XRHandlerGesture Gesture { get; }

Description Return gesture present by Handler.


  • public Vector3 GlobalPosition { get; }

Description Return hand / controller position in Unity worldspace.


  • public Quaternion GlobalRotation { get; }

Description Return hand / controller rotation in Unity worldspace.


  • public Vector3 Gyroscope { get; }

Description Return controller gyroscope information.


  • public XRHandlerType HandlerType { get; }

Description Return Handler current type.


  • public bool IsHandLostTracking { get; }

Description If true, hand is not found by camera in a period of time.


  • public bool IsHandNotFound { get; }

Description If true, hand is not found by camera at the time.


  • public float PositionConfidence { get; }

Description Return confidence of the hand given position.


  • public Vector3 Position { get; }

Description Return local position of XRManager.


  • public Quaternion Rotation { get; }

Description Return local reotation of XRManager.


  • public Vector3 RaycastOrigin { get; }

Description Return Raycaster origin for hand.


  • public Vector3 RaycastDirection { get; }

Description Return the direction for hand.


  • public long Timestamp { get; }

Description Return this data’s update time.


  • public Vector2 TouchPosition { get; }

Description Return touch position on controller’s touch pad in x/y has a value range of -1 to 1.


  • public int TriggerLevel { get; }

Description Return trigger button’s pressed depth.

Method

  • public XRHandlerData Clone()

Description Get deep copy data.