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.ReferenceEquals(object, object)
    object.GetType()
    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.

    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)