Class SettingsAttribute
Specifies the settings type, path in the settings UI, and optionally its filename. If the filename is not set, the type's name is used.
public sealed class SettingsAttribute : Attribute
Inheritance
Constructors
SettingsAttribute(SettingsUsage, string, string)
Initializes a new instance of the SettingsAttribute class.
public SettingsAttribute(SettingsUsage usage, string displayPath = null, string filename = null)
Parameters
| Name | Type | Description |
|---|---|---|
usage | SettingsUsage | The type of settings (how and when they are used). |
displayPath | string | The display path of the settings in the settings UI. Optional. |
filename | string | The filename used to store the settings. If null, the type's name is used. Optional. |
Fields
displayPath
The display name and optional path in the settings dialog.
public readonly string displayPath
Field Value
string
filename
The filename used to store the settings. If null, the type's name is used.
public readonly string filename
Field Value
string