- 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 - XRTrackerData¶
Only for Tracker use.
Contents
Propertie¶
public SensorAccuracyLevel AccAccuracyLevel { get; }
Description
Return tracker accelerometer accuracy level.
public Vector3 Accelerometer { get; }
Description
Return tracker accelerometer information.
public int Battery { get; }
Description
Return tracker battery in percent.
public boolean Button { get; }
Description
Return button’s status. Return true when button is pressing, return false when is release.
public boolean ButtonDown { get; }
Description
Returns true during the frame the user pressed down the button.
You need to call this function from the Update function, since the state gets reset each frame. It will not return true until the user has released the key and pressed it again.
public boolean ButtonUp { get; }
Description
Return true the first frame when user pressed release the button.
public XRDeviceType DeviceType { get; }
Description
Return device type.
public SensorAccuracyLevel GyroAccuracyLevel { get; }
Description
Return tracker gyroscope accuracy level.
public Vector3 Gyroscope { get; }
Description
Return tracker gyroscope information.
public Vector3 LinearAcc { get; }
Description
Return tracker linear acceleterator information.
public Vector3 Magnetic { get; }
Description
Return tracker magnetic information.
public Vector3 Position { get; }
Description
Return tracker posotion information.
public SensorAccuracyLevel RotAccuracyLevel { get; }
Description
Return tracker rotation accuracy level.
public Quaternion Rotation { get; }
Description
Return tracker rotation information.
public Int64 Timestamp { get; }
Description
Return this data’s update time.