First look at the editor
The vgai editor is a real-time 3D scene editor wired directly to the engine runtime. Here’s the lay of the land. Each panel has a dedicated page in the Editor Guide; this is the orientation.
The viewport
Section titled “The viewport”The center panel renders your scene with the actual engine renderer.
- Orbit with the right mouse button, pan with the middle button, zoom with the scroll wheel.
- Numpad keys snap to view presets (top / front / right / perspective); the orientation gizmo in the corner shows and changes orientation.
- Click to select; drag on empty space for a marquee selection.
- The transform gizmo moves (W), rotates (E), and scales (R) the selection, with world/local and snap-to-grid toggles.
The hierarchy
Section titled “The hierarchy”The left panel is the entity tree — every object in the scene. Drag to reparent,
search to filter, toggle visibility, and right-click for context actions. Each node is a
Three.js Object3D; selecting one drives the inspector.
The inspector
Section titled “The inspector”The right panel edits the selected entity, section by section: Transform, Mesh, Material, Light, Shadow, Camera, Physics, Joints, Animation, Audio, Navigation, Particles, Post-processing, Spline, and Components. With nothing selected, it shows environment settings (background, lighting, fog, skybox, post-processing).
The inspector fields are generated from the engine’s Zod schemas, so what you can edit always matches what the runtime understands.
The asset browser & bottom panels
Section titled “The asset browser & bottom panels”The bottom panel hosts the asset browser (a folder tree of models, images, scenes, and prefabs you can drag into the viewport), plus the console (engine logs) and the build panel (export to web/itch or a Steam-ready desktop build).
Play mode
Section titled “Play mode”Press play to run the real game loop inside the editor. Edits to components hot-reload while preserving state — see Hot reload in Foundations.
- Design philosophy — why the editor edits the live scene.
- Editor Guide — a page per panel and tool.