Constructor XRCameraConfiguration
XRCameraConfiguration(IntPtr, Vector2Int, int?, Supported)
Constructs a camera configuration.
Declaration
public XRCameraConfiguration(IntPtr handle, Vector2Int resolution, int? framerate, Supported depthSensorSupported)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | handle | The platform-specific native handle that you can use to get the native configuration. |
Vector2Int | resolution | The resolution of the camera image. |
int? | framerate | The camera framerate. |
Supported | depthSensorSupported | Whether the configuration supports a depth sensor. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | Thrown if |
XRCameraConfiguration(IntPtr, Vector2Int, int)
Constructs a camera configuration with a framerate.
Declaration
public XRCameraConfiguration(IntPtr handle, Vector2Int resolution, int framerate)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | handle | The platform-specific native handle that you can use to get the native configuration. |
Vector2Int | resolution | The resolution of the camera image. |
int | framerate | The camera framerate. Throws |
Remarks
depthSensorSupported is set to Unknown.
XRCameraConfiguration(IntPtr, Vector2Int)
Constructs a camera configuration without a framerate.
Declaration
public XRCameraConfiguration(IntPtr handle, Vector2Int resolution)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | handle | The platform-specific native handle that can be used to get the native configuration. |
Vector2Int | resolution | The resolution of the camera image. |
Remarks
framerate will have no value, and depthSensorSupported is set to Unknown.