大约有 335 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0051 秒)
Laya_社区(195) Laya2.0_文档(67) Laya_示例(44) Laya3.0_api(15) Laya3.0_文档(12) laya_api(1) Laya2.0_api(1)
...lh"); //加载到场景 scene.addChild(monkey); //让摄影机指向角色 camera.transform.lookAt(monkey.transform.position,new Laya.Vector3(0,1,0)); //获取动画组件 var ani = monkey.getComponent(Laya.Animator); //播放攻击状态 ani.play("attack"); //等待动画播放完成 Laya.timer.fra...
来源: Laya2.0_文档 发布时间: 20210715
...ight.shadowMode = Laya.ShadowMode.SoftLow; // Set shadow max distance from camera. directionLight.shadowDistance = 3; // Set shadow resolution. directionLight.shadowResolution = 1024; // Set shadow cascade mode. directionLight.shadowCascadesMode = Laya.ShadowCascadesMode.NoCascades; ``` 开启地面...
来源: Laya2.0_文档 发布时间: 20210715
...jects_D/LayaPrjs/2017_FilesLayouterManager/bin/h5/Main.max.js:47184:20) at Camera.__proto._renderCamera (file:///D:/Projects_D/LayaPrjs/2017_FilesLayouterManager/bin/h5/Main.max.js:55676:10) at Scene.__proto.renderSubmit (file:///D:/Projects_D/LayaPrjs/2017_FilesLayouterManager/bin/h5/Main.max.js:47...
来源: Laya_社区 发布时间: 20170626
...egClass() export class Main extends Laya.Script { @property( { type : Laya.Camera } ) private camera: Laya.Camera; @property( { type : Laya.Scene3D } ) private scene: Laya.Scene3D; onStart() { console.log("Game start"); //加载预制体文件 Laya.loader.load("resources/Prefab.lh").then( (res)=>...
来源: Laya3.0_文档 发布时间: 20241014
...egClass() export class Main extends Laya.Script { @property( { type : Laya.Camera } ) private camera: Laya.Camera; @property( { type : Laya.Scene3D } ) private scene: Laya.Scene3D; onStart() { console.log("Game start"); //加载预制体文件 Laya.loader.load("resources/Prefab.lh").then( (res)=>...
来源: Laya3.0_文档 发布时间: 20250214
...te3D; //加载到场景 scene.addChild(monkey); //让摄影机指向角色 camera.transform.lookAt(monkey.transform.position,new Laya.Vector3(0,1,0)); //获取动画组件 var ani = monkey.getComponent(Laya.Animator) as Laya.Animator; //播放攻击状态 ani.play("attack"); //等待动画播放完...
来源: Laya2.0_文档 发布时间: 20210715
...tionLight.shadowMode = ShadowMode.SoftLow; // Set shadow max distance from camera. directionLight.shadowDistance = 3; // Set shadow resolution. directionLight.shadowResolution = 1024; // Set shadow cascade mode. directionLight.shadowCascadesMode = ShadowCascadesMode.NoCascades; // Set shadow normal ...
来源: Laya2.0_文档 发布时间: 20210715
...ight.shadowMode = Laya.ShadowMode.SoftLow; // Set shadow max distance from camera. directionLight.shadowDistance = 3; // Set shadow resolution. directionLight.shadowResolution = 1024; // Set shadow cascade mode. directionLight.shadowCascadesMode = Laya.ShadowCascadesMode.NoCascades; ``` 开启地面...
来源: Laya2.0_文档 发布时间: 20210715
...lh"); //加载到场景 scene.addChild(monkey); //让摄影机指向角色 camera.transform.lookAt(monkey.transform.position,new Vector3(0,1,0)); //获取动画组件 var ani:Animator = monkey.getComponent(Laya.Animator) asAnimator; //播放攻击状态 ani.play("attack"); //等待动画播放完成...
来源: Laya2.0_文档 发布时间: 20210715
...se) Laya.stage.addChild(pNewScene); Util3d.getChildByPath(pNewScene, "Main Camera").active = false; let pBull = <Laya.Sprite3D>Util3d.getRes(this.sBullRes) let pEnemy = <Laya.Sprite3D>Util3d.getRes(this.sEnemyRes) pNewScene.addChild(pBull); pNewScene.addChild(pEnemy); let tPosBull = Util...
来源: Laya_社区 发布时间: 20200720