Skip to content

Preview and Test

The editor ships with a runtime preview so you can test your scene without leaving the desktop app. Preview runs the same @relu-interactives/spatial-ecs engine that powers your published builds, so what you see is what users will get.

Starting a preview

Click the Preview button in the toolbar. The editor saves the current scene, spins up a local runtime server, and opens a preview window.

Previewing scene

What runs in preview

  • All systems from the runtime including animation, physics, scripts, rendering.
  • Every Behaviour script you've authored, compiled in real time.
  • Project type specific runtimes (image tracking, face tracking, WebXR sessions where applicable).

Stopping a preview

Click Preview again (it switches to Stop preview). The editor returns to authoring mode and the runtime server shuts down.

Hot-reload caveats

Preview is not a live link to the editor. To see changes:

  1. Edit in the editor.
  2. Save the project (⌘S / Ctrl+S).
  3. Restart preview.

TIP

Most preview iteration is fastest by keeping the preview window visible alongside the editor and restarting it after each significant change.

Testing on devices

For project types that need real device sensors (image tracking, face tracking, AR, VR) the desktop preview only goes so far. Use these strategies:

  • Image / face tracking: desktop preview can use your laptop camera. For phone camera quality, publish a draft build and open it on the target device.
  • WebXR (AR / VR): publish a draft and open it on a headset or AR capable phone over your local network or via a tunnel like ngrok.

Common preview issues

SymptomLikely cause
Preview button does nothingSave failed check for unsaved errors or read-only project folder.
Black viewportNo camera in scene, or camera's clear color matches scene fog.
Scripts don't runCompile error check the editor footer for compile output.
Image targets don't trackTargets weren't recompiled after upload. Open the compile modal and re-run.

Next

You're done with Getting Started. Continue with: