← Index · Prev · Next →

04 — Workflow

Day-to-day iteration: validate before export, Live Link for Ctrl+S reload, and debug vs release exports.

Validate

Babylon Scene → Validate runs the same checks as export without writing files. Use it when wiring references or scripts.

Common warnings:

Trace: trace-validate. Export Level also runs validate and lists warnings in its report.

Live Link

  1. Export once manually to set the output path (stored per .blend)
  2. Tick Live Link in Babylon Scene
  3. Every Ctrl+S re-exports to the same paths
  4. With npm run dev, the Vite plugin watches public/levels/ and reloads the browser (debounced; all asset types, not only the manifest)

Warnings print to Blender's console on each live save. Trace: trace-livelink · runtime: engine trace-livelink.

Debug Build

When Debug Build is enabled, the manifest includes "debug": true. The playground enables:

Untick for release builds. Older manifests without the field behave as debug-enabled.

Recommended loop

flowchart LR
  A[Author in Blender] --> B{Validate clean?}
  B -->|fix warnings| A
  B -->|yes| C[Export or Live Link save]
  C --> D[Browser reload via Vite]
  D --> A

Input Actions code gen (optional)

After editing the scene Input Actions asset, run from repo root:

npm run input:gen -- --app playground

Generates typed constants in apps/playground/src/InputActions.ts so action names are compile-time checked. Keep asset at apps/<name>/input.inputactions.json.

See also