Get RAPTOR

RaptorSettingsSection

A section of Project Settings → RAPTOR.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorclasspreview, since 0.1.0

Register it with RaptorProjectSettings.RegisterSection.

public sealed class RaptorSettingsSection

Constructors

RaptorSettingsSection

public RaptorSettingsSection(string id, string label, Action<string> onGUI, int order = 0, IEnumerable<string> keywords = null)

Creates a section.

ParameterTypeDefaultDescription
idstringThe section's stable id.
labelstringThe section title, also used as its child page name.
onGUIAction<string>Draws the section; receives the search text.
orderint0Sort order; lower comes first.
keywordsIEnumerable<string>nullExtra 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.

  • RaptorProjectSettings: RAPTOR's per-project settings file and the section registry for Project Settings → RAPTOR.