Skip to main content

autoInit

Typeboolean
Defaulttrue

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

Load 3D model
{
src: "/egjs-view3d/model/draco/alarm.glb",
poster: "/egjs-view3d/poster/alarm_default.png",
autoInit: false
}