Class UserSettingBlockAttribute
UserSettingBlock allows you add a section of settings to a category.
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. |