Struct ArCameraConfig
Represents an ARCore camera configuration, which describes the ARCore-related properties of a device camera.
Inherited Members
Namespace: UnityEngine.XR.ARCore
Assembly: solution.dll
Syntax
public struct ArCameraConfig : IDisposable, IEquatable<ArCameraConfig>
Constructors
Name | Description |
---|---|
ArCameraConfig(ArSession) | Creates a new camera config object. To prevent memory leaks, this object should be disposed with Dispose() when you no longer need it. |
Properties
Name | Description |
---|---|
IsNull | (Read Only) Indicates whether this ArCameraConfig is |
Null | Represents a null ArCameraConfig, i.e., one whose underlying native pointer is |
Methods
Name | Description |
---|---|
AsIntPtr() | Gets the underlying native pointer for this ArCameraConfig. |
Dispose() | Destroys this ArCameraConfig and sets its underlying pointer to |
Equals(object) | Tests for equality. |
Equals(ArCameraConfig) | Tests for equality. |
FromIntPtr(IntPtr) | Creates a ArCameraConfig from an existing native pointer. The native pointer must point to an existing ArCameraConfig. |
GetCameraId(ArSession) | Obtains the camera id for this camera config. |
GetDepthSensorUsage(ArSession) | Gets the depth sensor usage settings. |
GetFacingDirection(ArSession) | Gets the facing direction of the camera selected by this config. |
GetFpsRange(ArSession) | Gets the minimum and maximum camera capture rate in frames per second (fps) for the current camera config. |
GetHashCode() | Generates a hash code suitable for use with a |
GetImageDimensions(ArSession) | Gets the camera image dimensions for this camera config. |
GetTextureDimensions(ArSession) | Gets the camera texture dimensions for this camera config. |
Operators
Name | Description |
---|---|
operator ==(ArCameraConfig?, ArCameraConfig?) | Tests for equality. |
operator ==(ArCameraConfig, ArCameraConfig) | Tests for equality. Same as Equals(ArCameraConfig). |
explicit operator IntPtr(ArCameraConfig) | Casts an ArCameraConfig to its underlying native pointer. |
operator !=(ArCameraConfig?, ArCameraConfig?) | Tests for inequality. |
operator !=(ArCameraConfig, ArCameraConfig) | Tests for inequality. Same as the negation of Equals(ArCameraConfig). |