Engines
Suity uses an engine-agnostic core plus replaceable rendering engines. The Runtime Core owns scene semantics, Prefabs, references, lifecycle and signals; an engine only maps the scene graph to concrete display objects.
Engine contract
An engine extension provides:
| File / capability | Purpose |
|---|---|
engine.json | Identity (id / profile), version, runtime range, catalog pointer, editor adapter pointer |
schema/components.json | Component catalog: types, defaults, fields, render slots |
runtime/index.js + index.d.ts | Runtime entry and public declarations (the source of the API docs) |
editor/adapter.js | Editor adapter: design preview, Play, inspector, module panels |
preview | Scene preview entry (createScenePreview) |
script | Script type declarations and runtime shim |
skills/ | Optional AI skill instructions |
Key engine.json fields:
json
{
"id": "pixi",
"profile": "pixi2d",
"version": "0.15.47",
"runtimeVersion": "0.19.5",
"runtimeRange": "^0.19.5",
"requirePortableContract": "^1.0.0",
"editor": { "adapter": "editor/adapter.js", "adapterContractVersion": 1 },
"script": { "componentApiVersion": 1 }
}Available engines
Planned engines
New engines extend the same structure: engines/<id>/ for capabilities and api/<id>/ generated by TypeDoc. Planned directions:
- A 3D engine (package, catalog, editor adapter and preview contract)
- Cross-engine module variants (
engineVariants[engineId]) - Engine-scoped asset kinds (
kinds[].engines)
Engines share the neutral
suity.*component prefix; engine-exclusive components use<engineId>.*. Portable types are constrained by theportable-typescontract.
Choosing an engine
- Mature 2D rendering with skeletons, tilemaps and platform controllers: Pixi 2D.
- 3D or a custom render pipeline: wait for the corresponding engine, or implement one against the contract above.
Switching engines does not change the semantic layer of a scene, but component types and asset settings may differ, so cross-engine projects need a component migration.
