RaptorSettingsSection
A section of Project Settings → RAPTOR.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | class | preview, since 0.1.0 |
Register it with RaptorProjectSettings.RegisterSection.
public sealed class RaptorSettingsSectionConstructors
RaptorSettingsSection
public RaptorSettingsSection(string id, string label, Action<string> onGUI, int order = 0, IEnumerable<string> keywords = null)Creates a section.
| Parameter | Type | Default | Description |
|---|---|---|---|
id | string | The section's stable id. | |
label | string | The section title, also used as its child page name. | |
onGUI | Action<string> | Draws the section; receives the search text. | |
order | int | 0 | Sort order; lower comes first. |
keywords | IEnumerable<string> | null | Extra words the search matches. |
Properties
Id
public string Id { get; }Gets the unique id. Registering the same id replaces the section.
Keywords
public IReadOnlyList<string> Keywords { get; }Gets extra words the Project Settings search matches.
Label
public string Label { get; }Gets the section title, also used as its child page name.
OnGUI
public Action<string> OnGUI { get; }Gets the callback that draws the section's rows with IMGUI layout. Its argument is the page's search text.
Order
public int Order { get; }Gets the page order. Lower comes first; ties sort by label.
Related types
- RaptorProjectSettings: RAPTOR's per-project settings file and the section registry for Project Settings → RAPTOR.