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
ConfigurationDescriptor(IntPtr, Feature, int)
Constructs a ConfigurationDescriptor.
Declaration
public ConfigurationDescriptor(IntPtr identifier, Feature capabilities, int rank)Parameters
| Type | Name | Description | 
|---|---|---|
| IntPtr | identifier | A unique identifier for this descriptor. | 
| Feature | capabilities | The supported capabilities of the configuration. | 
| int | rank | Higher values indicate this configuration should be chosen over another, otherwise equivalent configuration. | 
See Also
Properties
capabilities
The capabilities of this configuration.
Declaration
public Feature capabilities { get; }Property Value
| Type | Description | 
|---|---|
| Feature | 
See Also
identifier
A unique identifier for this descriptor.
Declaration
public IntPtr identifier { get; }Property Value
| Type | Description | 
|---|---|
| IntPtr | 
See Also
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.
Declaration
public int rank { get; }Property Value
| Type | Description | 
|---|---|
| int | 
See Also
Methods
Equals(object)
Compares for equality.
Declaration
public override bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| object | obj | The  | 
Returns
| Type | Description | 
|---|---|
| bool | 
 | 
Overrides
See Also
Equals(ConfigurationDescriptor)
Compares for equality.
Declaration
public bool Equals(ConfigurationDescriptor other)Parameters
| Type | Name | Description | 
|---|---|---|
| ConfigurationDescriptor | other | The other ConfigurationDescriptor to compare against. | 
Returns
| Type | Description | 
|---|---|
| bool | 
 | 
See Also
GetHashCode()
Generates a hash code suitable for use in a Dictionary or HashSet.
Declaration
public override int GetHashCode()Returns
| Type | Description | 
|---|---|
| int | A hash code of this ConfigurationDescriptor. | 
Overrides
See Also
ToString()
Generates a string representation suitable for debugging.
Declaration
public override string ToString()Returns
| Type | Description | 
|---|---|
| string | A string representation suitable for debugging. | 
Overrides
See Also
Operators
operator ==(ConfigurationDescriptor, ConfigurationDescriptor)
Compares for equality.
Declaration
public static bool operator ==(ConfigurationDescriptor lhs, ConfigurationDescriptor rhs)Parameters
| Type | Name | Description | 
|---|---|---|
| ConfigurationDescriptor | lhs | The left-hand side of the comparison. | 
| ConfigurationDescriptor | rhs | The right-hand side of the comparison. | 
Returns
| Type | Description | 
|---|---|
| bool | The same as Equals(ConfigurationDescriptor). | 
See Also
operator !=(ConfigurationDescriptor, ConfigurationDescriptor)
Compares for inequality.
Declaration
public static bool operator !=(ConfigurationDescriptor lhs, ConfigurationDescriptor rhs)Parameters
| Type | Name | Description | 
|---|---|---|
| ConfigurationDescriptor | lhs | The left-hand side of the comparison. | 
| ConfigurationDescriptor | rhs | The right-hand side of the comparison. | 
Returns
| Type | Description | 
|---|---|
| bool | The negation of Equals(ConfigurationDescriptor). |