csharp
public readonly record struct XrViewOne eye's pose and frustum for one frame.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Both change every frame and both come from the runtime. The pose in particular is predicted — it is where the eye will be when the frame is displayed, not where it is now — which is why the display time is passed to the call that produces it and why using a pose from the previous frame is visible as judder.
Fields and properties (3)
public XrPose PoseWhere the eye is, in the session's reference space.
public XrFieldOfView FovWhat it can see.
public Matrix4x4 ViewMatrixThe view matrix for this eye.
Methods (2)
public XrView(XrPose Pose, XrFieldOfView Fov)One eye's pose and frustum for one frame.
public Matrix4x4 Projection(float nearPlane = 0.05, float farPlane = 0)The projection matrix for this eye.
Used by (5)
- IXrSessionVixen.Xr
- NullXrBackendTestsVixen.Xr.Tests
- NullXrSessionVixen.Xr
- OpenXrSessionVixen.Xr.OpenXR
- XrTrackingSystemVixen.Xr