docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BaseSetting<T>

    Base class for implementing Tutorial Framework settings.

    Inheritance
    object
    BaseSetting<T>
    ProjectSetting<T>
    UserSetting<T>
    Namespace: Unity.Tutorials.Core.Editor
    Assembly: Unity.Tutorials.Core.Editor.dll
    Syntax
    public class BaseSetting<T> : SettingsManagement.UserSetting<T>
    Type Parameters
    Name Description
    T

    Constructors

    BaseSetting(string, string, T, SettingsScope, string)

    Constructs the setting.

    Declaration
    public BaseSetting(string key, string name, T value, SettingsScope scope, string tooltip = null)
    Parameters
    Type Name Description
    string key

    Key for EditorPrefs (User) or JSON file (Project).

    string name

    Use Tr() in order to have localization support.

    T value
    SettingsScope scope
    string tooltip

    Use Tr() in order to have localization support.

    Properties

    Name

    Name of the setting.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string

    Tooltip

    Tooltip for the setting.

    Declaration
    public string Tooltip { get; set; }
    Property Value
    Type Description
    string

    Methods

    GetGuiContent()

    Returns Name and Tooltip as GUIContent.

    Declaration
    public GUIContent GetGuiContent()
    Returns
    Type Description
    GUIContent
    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)