docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetValue

    SetValue(object, bool)

    Set the value for this setting.

    Declaration
    void SetValue(object value, bool saveProjectSettingsImmediately = false)
    Parameters
    Type Name Description
    object value

    The new value.

    bool saveProjectSettingsImmediately

    True to immediately serialize the ISettingsRepository that is backing this value, or false to postpone. If not serializing immediately, be sure to call Save().

    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)