docs.unity.cn
    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
    Syntax
    public class BaseSetting<T> : UnityEditor.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
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, July 8, 2021