Get RAPTOR

RaptorSuiteSettingsPage

The Suite's Settings page.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorclasspreview, since 0.1.0

Modules add rows through registries such as RaptorSuiteSettingsSwitches. Switch draws the page's standard on/off control.

public sealed class RaptorSuiteSettingsPage

Methods

Switch

public static bool Switch(Rect area, bool on, float width, float height, bool mixed)

Draws the standard on/off switch at any size. When mixed is true, the knob is centred.

ParameterTypeDescription
areaRectThe rect to draw in.
onboolThe current value.
widthfloatThe switch's width.
heightfloatThe switch's height.
mixedboolTrue when a multi-selection has different values.

Returns: The value after this event.