docs.unity3d.com
    Show / Hide Table of Contents

    Class StartupSettings

    Changes to the startup settings are only respected when those are made before Adaptive Performance starts, for instance, from a method with the attribute [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]).

    Inheritance
    Object
    StartupSettings
    Namespace: UnityEngine.AdaptivePerformance
    Syntax
    public static class StartupSettings

    Properties

    AutomaticPerformanceControl

    The Initial value of AutomaticPerformanceControl.

    Declaration
    public static bool AutomaticPerformanceControl { get; set; }
    Property Value
    Type Description
    Boolean

    Enable

    Enable Adaptive Performance.

    Declaration
    public static bool Enable { get; set; }
    Property Value
    Type Description
    Boolean

    true to enable debug Adaptive Performance, false to disable it (default: true)

    Logging

    Control debug logging. This setting only affects development builds. All logging is disabled in release builds. This setting can also be controlled after startup using Logging. Logging is disabled by default.

    Declaration
    public static bool Logging { get; set; }
    Property Value
    Type Description
    Boolean

    true to enable debug logging, false to disable it (default: false)

    PreferredSubsystem

    You can use this property to override the automatic selection of an Adaptive Performance subsystem. You should use this primarily for testing.

    Declaration
    public static AdaptivePerformanceSubsystem PreferredSubsystem { get; set; }
    Property Value
    Type Description
    AdaptivePerformanceSubsystem

    StatsLoggingFrequencyInFrames

    Adjust the frequency in frames at which the application logs frame statistics to the console. This is only relevant when logging is enabled. See Logging. This setting can also be controlled after startup using .

    Declaration
    public static int StatsLoggingFrequencyInFrames { get; set; }
    Property Value
    Type Description
    Int32

    Logging frequency in frames (default: 50)

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023