CommandToolbarOverlay

SceneView Overlay that hosts the CommandToolbar. Registers as a horizontal toolbar overlay in the Unity Editor's SceneView, providing the docking and layout infrastructure for the command search UI. Implements ICreateHorizontalToolbar for proper toolbar integration.

Definition

Namespace: Paragon.Core.Command.Editor Assembly: Paragon.Editor.dll

[Overlay(typeof(SceneView), id, name)]
public class CommandToolbarOverlay : Overlay, ICreateHorizontalToolbar

Inheritance: Overlay → CommandToolbarOverlay Implements: ICreateHorizontalToolbar

Remarks

CommandToolbarOverlay is a thin host for the CommandToolbar. The Unity [Overlay] attribute registers it automatically with the SceneView. Users can toggle its visibility and reposition it via the SceneView's overlay menu.

The overlay ID is "command-overlay" and it displays as "Command" in the overlay dropdown menu.

The overlay only supports Layout.HorizontalToolbar — it cannot be displayed in panel or vertical layout modes.

Properties

supportedLayouts

Restricts the overlay to horizontal toolbar layout only.

protected override Layout supportedLayouts => Layout.HorizontalToolbar;

Methods

CreatePanelContent

Creates the overlay's visual content. Instantiates an OverlayToolbar, creates and initializes a CommandToolbar, and adds it to the toolbar.

Returns: An OverlayToolbar containing the initialized CommandToolbar.

CreateHorizontalToolbarContent

Implements ICreateHorizontalToolbar. Delegates to CreatePanelContent().

Returns: The OverlayToolbar from CreatePanelContent().

See Also

Last updated