docs.unity3d.com
    Show / Hide Table of Contents

    Class ProjectSetting<T>

    Wrapper for defining IET Project Settings conveniently.

    Inheritance
    Object
    BaseSetting<T>
    ProjectSetting<T>
    Inherited Members
    BaseSetting<T>.Name
    BaseSetting<T>.Tooltip
    BaseSetting<T>.GetGuiContent()
    Namespace: Unity.Tutorials.Core.Editor
    Syntax
    public class ProjectSetting<T> : BaseSetting<T>
    Type Parameters
    Name Description
    T
    Remarks

    If you wish to commit the changes to JSON immediately, use SetValue(value, saveProjectSettingsImmediately:true) or FrameworkSettings.Instance.Save(), otherwise changes are committed only on application quit or assembly reload.

    Constructors

    ProjectSetting(String, String, T, String)

    Constructs the setting.

    Declaration
    public ProjectSetting(string key, string name, T value, string tooltip = null)
    Parameters
    Type Name Description
    String key

    Key for EditorPrefs.

    String name

    Use Tr() in order to have localization support.

    T value
    String tooltip

    Use Tr() in order to have localization support.

    In This Article
    • Constructors
      • ProjectSetting(String, String, T, String)
    Back to top
    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