- About XR
- XR Unity SDK
- XR SDK Release Notes
- Version:1.0.3
- Version:1.0.2
- Version:1.0.1
- Version:1.0.0
- Version:0.9.59
- Version:0.9.58
- Version:0.9.57
- Version:0.9.56
- Version:0.9.55
- Version:0.9.54
- Version:0.9.53
- Version:0.9.52
- Version:0.9.51
- Version:0.9.38
- Version:0.9.37
- Version:0.9.34
- Version:0.9.33
- Version:0.9.32
- Version:0.9.31
- Version:0.9.30
- Version:0.9.24
- Version:0.9.23 Beta
API - XRHandlerData¶
Only for Handler use.
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.