docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor Configuration

    Configuration(ConfigurationDescriptor, Feature)

    Constructs a Configuration.

    Declaration
    public Configuration(ConfigurationDescriptor descriptor, Feature features)
    Parameters
    Type Name Description
    ConfigurationDescriptor descriptor

    A ConfigurationDescriptor for this configuration.

    Feature features

    A set of Feature(s) that should be enabled for this configuration. You can only enable exactly zero or one camera modes (see UserFacingCamera and WorldFacingCamera). If zero camera modes are enabled, no camera texture will be available. Some platforms might support a configuration that does not provide camera textures, which can be more performant if they are not necessary. All features must be supported by the descriptor.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if multiple camera modes are enabled.

    InvalidOperationException

    Thrown if multiple tracking modes are enabled.

    NotSupportedException

    Thrown if the descriptor does not support one or more features.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023