Struct XRCameraConfiguration
Contains information regarding the camera configuration. Different
devices support different camera configurations. This includes
the resolution of the image and may include framerate on some platforms.
Syntax
public struct XRCameraConfiguration : IEquatable<XRCameraConfiguration>
Properties
framerate
The framerate, if this camera configuration specifies one.
Declaration
public readonly int? framerate { get; }
Property Value
Type |
Description |
Nullable<Int32> |
The framerate, if this camera configuration specifies one. Otherwise, null .
|
height
The height of the camera resolution
Declaration
public readonly int height { get; }
Property Value
Type |
Description |
Int32 |
The height, in pixels, of the camera resolution
|
resolution
Declaration
public readonly Vector2Int resolution { get; }
Property Value
Type |
Description |
Vector2Int |
The camera resolution in pixels.
|
width
The width of the camera resolution
Declaration
public readonly int width { get; }
Property Value
Type |
Description |
Int32 |
The width, in pixels, of the camera resolution
|
Methods
Equals(System.Object)
Declaration
public override bool Equals(System.Object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Equals(XRCameraConfiguration)
Declaration
public bool Equals(XRCameraConfiguration other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
ToString()
Converts the configuration to a string, suitable for debug logging.
Declaration
public override string ToString()
Returns
Operators
Equality(XRCameraConfiguration, XRCameraConfiguration)
Declaration
public static bool operator ==(XRCameraConfiguration lhs, XRCameraConfiguration rhs)
Parameters
Returns
Inequality(XRCameraConfiguration, XRCameraConfiguration)
Declaration
public static bool operator !=(XRCameraConfiguration lhs, XRCameraConfiguration rhs)
Parameters
Returns