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