Class UserSettingBlockAttribute
A custom attribute for adding a section of settings to a category.
Namespace: UnityEditor.SettingsManagement
Syntax
public sealed class UserSettingBlockAttribute : Attribute
Constructors
UserSettingBlockAttribute(String)
Registers a static method for a callback in the UserSettingsProvider Editor window under a category.
[UserSettingBlock("General")]
static void GeneralSettings(string[] searchContext) {}
Declaration
public UserSettingBlockAttribute(string category)
Parameters
| Type | Name | Description |
|---|---|---|
| String | category | Specify the title of the group of settings under which this setting appears in the UI. |
Properties
category
Returns the title for the settings group. When Unity finds settings values in assemblies, it displays them in groups, organized by category.
Declaration
public string category { get; }
Property Value
| Type | Description |
|---|---|
| String | The group or category where this setting appears in the UI. |