SceneSelectMenu
Internal popup menu for selecting scenes from a filtered list. Uses Odin's GenericSelector<Scene> to display a searchable, icon-decorated dropdown.
Definition
Namespace: Paragon.Core.SceneManagement.Editor Assembly: Paragon.Editor.dll
internal class SceneSelectMenuRemarks
SceneSelectMenu is a reusable popup component used by both SceneGraphEditor (to add scenes to the graph) and SceneNodeDrawer (to add dependencies). It wraps Odin's GenericSelector<Scene> with:
Searchable list with search toolbar enabled
Scene icons using
DrawGUI.Icon.Paragon.UnityPath preview in the footer showing the relative path of the hovered scene
Auto-sizing based on the number of selectable scenes
The popup is positioned relative to the triggering button rect and auto-closes after selection or when the window loses focus.
Quick Lookup
Show the picker
menu.Show(buttonRect, scenes, onSelected)
Reuse across repaints
Create once, call Show() each time
Methods
Show
Displays the scene selection popup.
buttonRect
Rect
Screen-space rect of the triggering button (used for positioning)
selectableScenes
List<Scene>
Filtered list of scenes available for selection
onSelected
Action<Scene>
Callback invoked when a scene is confirmed
Selection behavior: Single-click changes the footer path preview. Double-click confirms the selection and invokes the callback. The window auto-closes after confirmation.
Common Pitfalls
Reuse the instance SceneSelectMenu is designed to be created once and reused. Both SceneGraphEditor and SceneNodeDrawer store it as a field and call Show() each time the add button is clicked.
Empty list still shows popup If selectableScenes is empty, the popup still appears but with no items. The body height falls back to 35 pixels.
See Also
SceneGraphEditor — Uses this menu for the "Add Scene" button
SceneNodeDrawer — Uses this menu for the "Add Dependency" button
Last updated