Class UserSettingBlockAttribute | Settings Manager | 1.0.1
docs.unity.cn
    Show / Hide Table of Contents

    Class UserSettingBlockAttribute

    UserSettingBlock allows you add a section of settings to a category.

    Inheritance
    Object
    Attribute
    UserSettingBlockAttribute
    Namespace: UnityEditor.SettingsManagement
    Syntax
    [AttributeUsage(AttributeTargets.Method)]
    public sealed class UserSettingBlockAttribute : Attribute, _Attribute

    Constructors

    UserSettingBlockAttribute(String)

    Register a static method for a callback in the UserSettingsProvider editor under a category.

    [UserSettingBlock("General")]
    static void GeneralSettings(string[] searchContext) {}
    Declaration
    public UserSettingBlockAttribute(string category)
    Parameters
    Type Name Description
    String category

    The title of the group of settings that this setting will be shown under.

    Properties

    category

    Settings that are automatically scraped from assemblies are displayed in groups, organized by category.

    Declaration
    public string category { get; }
    Property Value
    Type Description
    String

    The title of the group of settings that this setting will be shown under.

    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX