Appearance
Model loading pipeline
Editor path
- Browser
Fileobjects are collected. - A root GLB or GLTF is selected.
- Every file receives an object URL.
- Relative dependency paths are normalized into a URL map.
- GLTFLoader resolves requests through the loading manager.
- Scene data, clips, bounds, meshes, materials, textures, and statistics are collected.
- Object URLs are revoked when the bundle changes or unmounts.
Runtime path
- GLTFLoader receives
srcand optionalresourcePath. - Draco and Meshopt decoders are attached.
- The loaded scene is cloned with
SkeletonUtils.clone. - Material overrides and replacement textures are applied.
- Local bounds and runtime statistics are calculated.
- The clone is mounted below
ModelPivotGroup. - Resources are disposed when replaced or unmounted.
Why clone
A loader cache may share the same scene or materials across instances. Cloning prevents one viewer's material overrides and animations from unexpectedly affecting another viewer.