unity_ui_scene_setup
Sets up a Unity scene for generated UI via live editor bridge: creates Canvas and EventSystem, instantiates panels, attaches optional MenuManager, activates initial panel, and saves.
Instructions
Set up and validate a Unity scene for generated UI through the live editor bridge. Creates/reuses Canvas and EventSystem, selects the compatible input module, instantiates panels, optionally attaches a compiled MenuManager MonoBehaviour and assigns generated panel fields, activates only initialPanel, and saves the scene on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | setup_and_validate | |
| panels | Yes | Project-local generated panel prefab paths to instantiate. | |
| bridgeUrl | No | ||
| scenePath | No | Project-local scene path. If omitted, the live bridge uses the active scene. | |
| editorPath | No | ||
| projectPath | Yes | Unity project root. | |
| initialPanel | Yes | Panel prefab path from panels that should be active at startup. | |
| menuBindings | No | Optional serialized field assignments for menuManagerClass. fieldName is a field on the MenuManager; panel is one of the panel prefab paths. | |
| menuManagerClass | No | Optional fully-qualified compiled MonoBehaviour type to attach to a scene GameObject named MenuManager. |