autoInit
Call View3D's init() automatically when creating instance.
When the option src
is not given, init
won't be called even if this option is true.
If src
is given, you can call init() anytime to initialize View3D.
Or, if the src
is null
you can call load() to set new 3D model & initialize.
Example
- JSON
- JavaScript
- React
- Angular
- Vue@2
- Vue@3
- Svelte
{
src: "/egjs-view3d/model/draco/alarm.glb",
poster: "/egjs-view3d/poster/alarm_default.png",
autoInit: false
}