docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ProjectSetting<T>

    Wrapper for defining IET Project Settings conveniently.

    Inheritance
    object
    UserSetting<T>
    BaseSetting<T>
    ProjectSetting<T>
    Implements
    IUserSetting
    Inherited Members
    BaseSetting<T>.Name
    BaseSetting<T>.Tooltip
    BaseSetting<T>.GetGuiContent()
    UserSetting<T>.key
    UserSetting<T>.settingsRepositoryName
    UserSetting<T>.type
    UserSetting<T>.GetDefaultValue()
    UserSetting<T>.GetValue()
    UserSetting<T>.scope
    UserSetting<T>.settings
    UserSetting<T>.SetValue(object, bool)
    UserSetting<T>.SetValue(T, bool)
    UserSetting<T>.Delete(bool)
    UserSetting<T>.ApplyModifiedProperties()
    UserSetting<T>.Reset(bool)
    UserSetting<T>.defaultValue
    UserSetting<T>.value
    UserSetting<T>.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Tutorials.Core.Editor
    Assembly: Unity.Tutorials.Core.Editor.dll
    Syntax
    public class ProjectSetting<T> : BaseSetting<T>, IUserSetting
    Type Parameters
    Name Description
    T

    The Type of the value this Setting contains

    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

    The value to initialize this new ProjectSetting to

    string tooltip

    Use Tr() in order to have localization support.

    Implements

    UnityEditor.SettingsManagement.IUserSetting
    In This Article
    Back to top
    Copyright © 2025 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)