XRSPACE Developer Console

API - XRManager

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.