Get RAPTOR

RaptorSuiteInspectorBlock

One Inspector block.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorclasspreview, since 0.1.0
public sealed class RaptorSuiteInspectorBlock

Fields

Draw

public Action<GameObject[], RaptorSuiteContext> Draw;

Draws the block inside the Inspector's editing scope, which is disabled in Play mode. The host uses GUILayout; widgets inside it use rects.

DrawSection

public Action<Component[], RaptorPropertiesUI> DrawSection;

Draws an anchored block for one editable section. Receives the section's target array and the panel's row kit. The array is the same instance on every pass of that section and can be used as a key for per-section caches.

Id

public string Id;

Stable id (e.g. "mytool.inspector"). Registering the same id again replaces the block.

Order

public int Order;

Draw order among blocks of the same kind. Lower comes first; equal values keep registration order.

Owns

public Func<GameObject[], bool> Owns;

Returns whether the block draws for this selection. Called on every Inspector pass, so keep it cheap.

Section

public Type Section;

The component type whose section hosts this block. Null makes it a selection block, shown after every section.

  • RaptorPropertiesUI: Draws Inspector rows that match RAPTOR's built-in rows.
  • RaptorSuiteContext: Reads the current editor state without keeping references to the selection or scene objects.