docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ArCameraConfig

    Represents an ARCore camera configuration, which describes the ARCore-related properties of a device camera.

    Implements
    IDisposable
    IEquatable<ArCameraConfig>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    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. This property is deprecated. Use the equality operator (==) to compare with null instead.

    Null

    Represents a null ArCameraConfig, i.e., one whose underlying native pointer is null. This property is deprecated. Use default instead.

    Methods

    Name Description
    AsIntPtr()

    Gets the underlying native pointer for this ArCameraConfig.

    Dispose()

    Destroys this ArCameraConfig and sets its underlying pointer to null.

    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 HashSet or Dictionary

    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).

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023