docs.unity.cn
    Show / Hide Table of Contents

    Class ConfigurationChooser

    The base class for configuration choosers, which determines which configuration a session will use. Used by DetermineConfiguration(Feature). Use configurationChooser to get or set the session's configuration choosers.

    Inheritance
    Object
    ConfigurationChooser
    DefaultConfigurationChooser
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.ARSubsystems
    Syntax
    public abstract class ConfigurationChooser

    Methods

    ChooseConfiguration(NativeSlice<ConfigurationDescriptor>, Feature)

    Chooses a configuration given a set of ConfigurationDescriptors and requested Features.

    Declaration
    public abstract Configuration ChooseConfiguration(NativeSlice<ConfigurationDescriptor> descriptors, Feature requestedFeatures)
    Parameters
    Type Name Description
    Unity.Collections.NativeSlice<ConfigurationDescriptor> descriptors

    The set of available configurations supported by the session.

    Feature requestedFeatures

    The set of requested Features.

    Returns
    Type Description
    Configuration

    A Configuration the session should use. See Configuration(ConfigurationDescriptor, Feature) for restrictions on the selected configuration.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, May 22, 2023