File Author Date Description import * as Sein from 'seinjs' ; import { createDefaultCamera } from '../../utils' ; export default class MainScript extends Sein . LevelScriptActor { public onPreload ( ) { this . getGame ( ) . resource . load ( { type : 'GlTF' , name : 'scene.gltf' , url : getStaticAssetUrl ( '/assets/models/khr-webgl/scene.gltf' ) } ) ; } public onCreate ( ) { const game = this . getGame ( ) ; game . resource . instantiate < 'GlTF' > ( `scene.gltf` ) ; createDefaultCamera ( game , { position : new Sein . Vector3 ( 0 , 0 , 4 ) , target : new Sein . Vector3 ( 0 , 0 , 0 ) } ) ; } }