docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Set

    Set<T>(string, T)

    Set a value for key of type T.

    Declaration
    void Set<T>(string key, T value)
    Parameters
    Type Name Description
    string key

    The settings key.

    T value

    The value to set. Must be serializable.

    Type Parameters
    Name Description
    T

    Type of value.

    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)