import { Laya } from "Laya" ; import { Camera } from "laya/d3/core/Camera" ; import { Scene3D } from "laya/d3/core/scene/Scene3D" ; import { Stage } from "laya/display/Stage" ; import { Loader } from "laya/net/Loader" ; import { Handler } from "laya/utils/Handler" ; import { Stat } from "laya/utils/Stat" ; import { Laya3D } from "Laya3D" ; import { CameraMoveScript } from "../common/CameraMoveScript" ; author ...
  export class StaticBatchingTest { constructor ( ) { Laya3D . init ( 0 , 0 ) ; Laya . stage . scaleMode = Stage . SCALE_FULL ; Laya . stage . screenMode = Stage . SCREEN_NONE ; Stat . show ( ) ; Laya . loader . create ( [ "res/threeDimen/scene/LayaScene_city01/Conventional/city01.ls" ] , Handler . create ( this , this . onComplete ) ) ; } private onComplete ( ) { var scene = ( < Scene3D > Laya . stage . addChild ( Loader . getRes ( "res/threeDimen/scene/LayaScene_city01/Conventional/city01.ls" ) ) ) ; var camera = < Camera > scene . getChildByName ( "Main Camera" ) ; camera . addComponent ( CameraMoveScript ) ; } }