Struct ConfigurationDescriptor
Information about a configuration supported by a XRSessionSubsystem. Used by a ConfigurationChooser to select a configuration for the session.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public struct ConfigurationDescriptor : IEquatable<ConfigurationDescriptor>
Remarks
A session provider may have multiple, discrete "modes" of operation each with a different set of capabilities. A configuration descriptor represents the capabilities of a single "mode" of operation, which may be a subset of the session's overal capabilities. That is, the session may support many features, but not all at the same time.
Constructors
Name | Description |
---|---|
ConfigurationDescriptor(IntPtr, Feature, int) | Constructs a ConfigurationDescriptor. |
Properties
Name | Description |
---|---|
capabilities | The capabilities of this configuration. |
identifier | A unique identifier for this descriptor. |
rank | The "rank" of this configuration relative to other configurations. This can be used by a ConfigurationChooser when deciding between multiple configurations that support the requested Features. |
Methods
Name | Description |
---|---|
Equals(object) | Compares for equality. |
Equals(ConfigurationDescriptor) | Compares for equality. |
GetHashCode() | Generates a hash code suitable for use in a Dictionary or HashSet. |
ToString() | Generates a string representation suitable for debugging. |
Operators
Name | Description |
---|---|
operator ==(ConfigurationDescriptor, ConfigurationDescriptor) | Compares for equality. |
operator !=(ConfigurationDescriptor, ConfigurationDescriptor) | Compares for inequality. |