- 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 - XRManager¶
Contents
Static propertie¶
public static XRManager Instance { get; }
Description
XRManager is design in singleton pattern. Use this property to get all member.
Inner classe¶
public class XRSettings
Description
Displayed infos in XRManager’s inspector.
Enum
public enum XRSettings.AntiAliasing
Description
AntiAliasing level.
Disabled |
1 |
No Anti-Aliasing. |
MSAA_2X |
2 |
2x Multisampling Anti-Aliasing. |
MSAA_4X |
3 |
4X Multisampling Anti-Aliasing. |
Enum
public enum XRSettings.FoveationLevel
Description
Foveation level.
None |
-1 |
No foveation effect. |
Low |
0 |
Low foveation effect. |
Medium |
1 |
Medium foveation effect. |
High |
2 |
High foveation effect, be aware it cost more memory. |
Enum
public enum XRSettings.PerfLevel
Description
CPU or GPU level.
Minimum |
1 |
Low CPU or GPU performance. |
Medium |
2 |
Medium CPU or GPU performance. |
Maximum |
3 |
High CPU or GPU performance. |
Field¶
public Transform head
Description
The actual gameObject system update position and rotation.
public Camera leftCamera
Description
The actual camera render image on left-side.
public Camera rightCamera
Description
The actual camera render image on right-side.
Propertie¶
public XRSettings.PerfLevel CPUPerfLevel { get; set; }
Description
Return and set CPU level.
public bool DebugInfo { get; set; }
Description
If true
, system show hardware info in front, such as TimeStamp, Head Pos, Eye Pos/Fov, and etc.
public XRSettings.AntiAliasing EyeAntiAliasing { get; set; }
Description
Return and set Anti-Aliasing level.
public XRSettings.FoveationLevel FoveationLevel { get; set; }
Description
Return and set foveation level.
public int FPS { get; }
Description
Return FPS.
public XRSettings.PerfLevel GPUPerfLevel { get; set; }
Description
Return and set GPU level.
public bool IsVRModeStarted { get; }
Description
Return true after VR mode started.
public bool TrackPosition { get; set; }
Description
If true
, system update head’s position and rotation. If false
, system update head’s rotation only.
public float TrackPositionScale { get; set; }
Description
Return and set track position conversion unit from meters.