loadStart
An event that fires before loading a 3D model.
Property | Type | Description |
---|---|---|
type | string | The type of event |
target | View3D | An instance of View3D that triggered this event |
model | Model | A new model that loaded |
src | string | A source URL of the model to load |
level | number | A level of model when loading multiple models at once, an integer starting from 0 |
maxLevel | number | Maximum level of models loading |
- JSON
- JavaScript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
src: [
"/egjs-view3d/model/lod/plant/simplified.gltf",
"/egjs-view3d/model/draco/plant.glb"
],
poster: "/egjs-view3d/poster/plant.png"
}