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