docs.unity.cn
    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
    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.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, July 8, 2021