Struct CameraConfigurationCollection | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct CameraConfigurationCollection

    An enumerable for CameraConfigurations.

    See also Configurations(XRCameraSubsystem).

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: UnityEngine.XR.ARExtensions
    Syntax
    public struct CameraConfigurationCollection : IEnumerable<CameraConfiguration>, IEnumerable

    Constructors

    CameraConfigurationCollection(ICameraConfigApi)

    Constructs an enumerable from an XRCameraSubsystem

    Declaration
    public CameraConfigurationCollection(ICameraConfigApi api)
    Parameters
    Type Name Description
    ICameraConfigApi api

    The ICameraConfigApi required to enumerate the supported configurations.

    Properties

    count

    Returns the number of configurations in this collection.

    Declaration
    public int count { get; }
    Property Value
    Type Description
    System.Int32

    Item[Int32]

    Get a configuration by index. Throws if index is out of bounds.

    Declaration
    public CameraConfiguration this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index

    The index of the configuration to retrieve. Must be greater than or equal to zero and less than the return value of count.

    Property Value
    Type Description
    CameraConfiguration

    The CameraConfiguration at index.

    Methods

    GetEnumerator()

    Get an enumerator for this enumerable.

    Declaration
    public CameraConfigurationCollection.ConfigEnumerator GetEnumerator()
    Returns
    Type Description
    CameraConfigurationCollection.ConfigEnumerator

    An enumerator for CameraConfiguration.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023