Class UserSettingBlockAttribute
UserSettingBlock allows you add a section of settings to a category.
Implements
Inherited Members
Namespace: UnityEditor.SettingsManagement
Assembly: Unity.Settings.Editor.dll
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. |