Struct XRCameraConfiguration
Contains information about camera configuration.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public struct XRCameraConfiguration : IEquatable<XRCameraConfiguration>
Remarks
Different devices support different camera configurations. This includes image resolution and might include framerate on some platforms.
The camera image configuration affects the resolution of the image returned by TryAcquireLatestCpuImage(out XRCpuImage).
Constructors
Name | Description |
---|---|
XRCameraConfiguration(IntPtr, Vector2Int) | Constructs a camera configuration without a framerate. |
XRCameraConfiguration(IntPtr, Vector2Int, int) | Constructs a camera configuration with a framerate. |
XRCameraConfiguration(IntPtr, Vector2Int, int?, Supported) | Constructs a camera configuration. |
Properties
Name | Description |
---|---|
depthSensorSupported | Whether the configuration supports a depth sensor. |
framerate | The framerate, if this camera configuration specifies one. |
height | The height of the camera resolution. |
nativeConfigurationHandle | The platform-dependent handle that contains information required to acquire the native camera configuration. |
resolution | The camera resolution. |
width | The width of the camera resolution. |
Methods
Name | Description |
---|---|
Equals(object) | Tests for equality. |
Equals(XRCameraConfiguration) | Tests for equality. |
GetHashCode() | Generates a hash suitable for use with containers like |
ToString() | Converts the configuration to a string, suitable for debug logging. |
Operators
Name | Description |
---|---|
operator ==(XRCameraConfiguration, XRCameraConfiguration) | Tests for equality. Same as Equals(XRCameraConfiguration). |
operator !=(XRCameraConfiguration, XRCameraConfiguration) | Tests for inequality. Same as |