docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ConfigurationDescriptor

    Information about a configuration supported by a XRSessionSubsystem. Used by a ConfigurationChooser to select a configuration for the session.

    Implements
    IEquatable<ConfigurationDescriptor>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.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
    ConfigurationChooser
    DetermineConfiguration(Feature)
    GetConfigurationDescriptors(Allocator)

    Properties

    capabilities

    The capabilities of this configuration.

    Declaration
    public Feature capabilities { get; }
    Property Value
    Type Description
    Feature
    See Also
    ConfigurationChooser
    DetermineConfiguration(Feature)
    GetConfigurationDescriptors(Allocator)

    identifier

    A unique identifier for this descriptor.

    Declaration
    public IntPtr identifier { get; }
    Property Value
    Type Description
    IntPtr
    See Also
    ConfigurationChooser
    DetermineConfiguration(Feature)
    GetConfigurationDescriptors(Allocator)

    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
    ConfigurationChooser
    DetermineConfiguration(Feature)
    GetConfigurationDescriptors(Allocator)

    Methods

    Equals(object)

    Compares for equality.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare against.

    Returns
    Type Description
    bool

    true if obj is of type ConfigurationDescriptor and Equals(ConfigurationDescriptor) is true.

    Overrides
    ValueType.Equals(object)
    See Also
    ConfigurationChooser
    DetermineConfiguration(Feature)
    GetConfigurationDescriptors(Allocator)

    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

    true if the other ConfigurationDescriptor is equal to this one.

    See Also
    ConfigurationChooser
    DetermineConfiguration(Feature)
    GetConfigurationDescriptors(Allocator)

    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
    ValueType.GetHashCode()
    See Also
    ConfigurationChooser
    DetermineConfiguration(Feature)
    GetConfigurationDescriptors(Allocator)

    ToString()

    Generates a string representation suitable for debugging.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation suitable for debugging.

    Overrides
    ValueType.ToString()
    See Also
    ConfigurationChooser
    DetermineConfiguration(Feature)
    GetConfigurationDescriptors(Allocator)

    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
    ConfigurationChooser
    DetermineConfiguration(Feature)
    GetConfigurationDescriptors(Allocator)

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

    See Also
    ConfigurationChooser
    DetermineConfiguration(Feature)
    GetConfigurationDescriptors(Allocator)

    Implements

    IEquatable<T>

    See Also

    ConfigurationChooser
    DetermineConfiguration(Feature)
    GetConfigurationDescriptors(Allocator)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)