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 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 int height { get; }
Property Value
| Type |
Description |
| Int32 |
The height, in pixels, of the camera resolution
|
resolution
Declaration
public Vector2Int resolution { get; }
Property Value
| Type |
Description |
| Vector2Int |
The camera resolution in pixels.
|
width
The width of the camera resolution
Declaration
public int width { get; }
Property Value
| Type |
Description |
| Int32 |
The width, in pixels, of the camera resolution
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| Object |
obj |
|
Returns
Overrides
Equals(XRCameraConfiguration)
Declaration
public bool Equals(XRCameraConfiguration other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Converts the configuration to a string, suitable for debug logging.
Declaration
public override string ToString()
Returns
Overrides
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