docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetProfile

    SetProfile(InitializationOptions, string)

    An extension to set the profile to use.

    Declaration
    public static InitializationOptions SetProfile(this InitializationOptions options, string profile)
    Parameters
    Type Name Description
    InitializationOptions options

    The InitializationOptions object to modify

    string profile

    The profile to use

    Returns
    Type Description
    InitializationOptions

    Return options. Fluent interface pattern to make it easier to chain set options operations.

    Exceptions
    Type Condition
    AuthenticationException

    the method will fail with an AuthenticationException if an invalid profile name is passed

    • Throws with ErrorCode ClientInvalidProfile if the profile name is invalid.
    In This Article
    Back to top
    Copyright © 2023 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)