docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UserSetting<T>

    Wrapper for defining IET Preferences (User Settings) conveniently.

    Inheritance
    object
    BaseSetting<T>
    UserSetting<T>
    Inherited Members
    BaseSetting<T>.Name
    BaseSetting<T>.Tooltip
    BaseSetting<T>.GetGuiContent()
    Namespace: Unity.Tutorials.Core.Editor
    Assembly: Unity.Tutorials.Core.Editor.dll
    Syntax
    public class UserSetting<T> : BaseSetting<T>
    Type Parameters
    Name Description
    T

    Constructors

    UserSetting(string, string, T, string)

    Constructs the setting.

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

    Key for the JSON file.

    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
    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)