Class UserSettingBlockAttribute | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class UserSettingBlockAttribute

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

    Inheritance
    System.Object
    System.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
    System.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
    System.String

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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023