docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DefaultConfigurationChooser

    A default implementation of a ConfigurationChooser.

    Inheritance
    object
    ConfigurationChooser
    DefaultConfigurationChooser
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    Syntax
    public class DefaultConfigurationChooser : ConfigurationChooser

    Methods

    ChooseConfiguration(NativeSlice<ConfigurationDescriptor>, Feature)

    Selects a configuration from the given descriptors and requestedFeatures.

    Declaration
    public override Configuration ChooseConfiguration(NativeSlice<ConfigurationDescriptor> descriptors, Feature requestedFeatures)
    Parameters
    Type Name Description
    NativeSlice<ConfigurationDescriptor> descriptors

    A set of ConfigurationDescriptors supported by the XRSessionSubsystem.

    Feature requestedFeatures

    A set of requested Features.

    Returns
    Type Description
    Configuration

    The configuration that best matches the requestedFeatures.

    Overrides
    ConfigurationChooser.ChooseConfiguration(NativeSlice<ConfigurationDescriptor>, Feature)
    Remarks

    Selection works as follows: For each of the configuration descriptors, compute the number of supported Features that are present in requestedFeatures and choose the configuration descriptor with the highest count. rank is used to break ties.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if descriptors does not contain any descriptors.

    ArgumentException

    Thrown if requestedFeatures contains more than one tracking mode.

    ArgumentException

    Thrown if requestedFeatures contains more than one camera mode.

    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)