Class XRRig
- Namespace
- KmaxXR
- Assembly
- KmaxXR.Core.dll
public class XRRig : MonoBehaviour
- Inheritance
-
XRRig
Constructors
XRRig()
Fields
ScriptPriority
public const int ScriptPriority = -500
Field Value
- int
screen
protected VirtualScreen screen
Field Value
- VirtualScreen
stereoCamera
protected StereoCamera stereoCamera
Field Value
- StereoCamera
viewScale
protected float viewScale
Field Value
- float
Properties
IsSRP
public static bool IsSRP { get; }
Property Value
- bool
MonoDisplayMode
public static bool MonoDisplayMode { get; set; }
Property Value
- bool
Screen
public static VirtualScreen Screen { get; }
Property Value
- VirtualScreen
ScreenCorners
public static Vector3[] ScreenCorners { get; }
Property Value
- Vector3[]
ScreenTrans
public static Transform ScreenTrans { get; }
Property Value
- Transform
StereoRender
public StereoCamera StereoRender { get; }
Property Value
- StereoCamera
ViewScale
public static float ViewScale { get; set; }
Property Value
- float
ViewSize
public static Vector2 ViewSize { get; }
Property Value
- Vector2
Methods
GetScreenCorners()
public Vector3[] GetScreenCorners()
Returns
- Vector3[]
ManuallySetDisplayMode(bool)
public static bool ManuallySetDisplayMode(bool stereo)
Parameters
stereo bool
Returns
- bool
Start()
protected virtual void Start()
Events
OnViewScaleChanged
public static event Action<float> OnViewScaleChanged
Event Type
- Action<float>
onViewScaleChanged
protected event Action<float> onViewScaleChanged
Event Type
- Action<float>