Skip to content

Extending Model Lab

Add a loader

Create a runtime adapter with the same outputs as RuntimeModelInfo: scene, clips, bounds, renderables, and statistics. Keep format-specific code outside sequence and pivot layers.

Add an inspector panel

  1. Add typed configuration or selected-object state.
  2. Add controls in Inspector or a dedicated component.
  3. Apply values in ViewerCanvas or ModelAsset.
  4. Serialize them in the preset schema.
  5. Add runtime restoration and migration behavior.
  6. Document and test the public surface.

Add a sequence channel

A new channel requires changes to:

  • ViewerSnapshot
  • captureSnapshot
  • applySnapshot
  • interpolation in sampleSequence
  • runtime application in ImmersiveSequencePlayer
  • editor keyframe UI and export tests

Add an effect

Extend CinematicEffectName, implement a branch in the driver, record every original property you mutate, and verify restoration.

Add a schema version

Do not silently reinterpret old JSON. Add a new schema string and an explicit migration function.

Released under the MIT License.