大约有 116 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0027 秒)
...p); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function(){ //使用差速来体现移动 box.transform.translate(new Laya.Vector3(0,0.05,0),false); camera.transform.translate(new Laya.Vector3(0,04,0),false); }); })); ``` ![](img/3.gif)(图3)
来源: Laya2.0_文档 发布时间: 20210715
...ext was not allowed to start. 骨骼动画播放完后的回调时间 Laya.timer.loop()如何停止 如何设置Sprite的宽高和点击区域? Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! 播放声音出错,求指教 播放背景音乐的问题 刚...
来源: Laya_社区 发布时间: 20180128
最小化一定时间后心跳变成一分钟一次了 Laya.timer.frameLoop(1, this, this.run, null); private last:number = 0; private run() { let now = Date.now(); console.log("fightmng run >> " + now, " usetime:"+(now-this.last)); this...
来源: Laya_社区 发布时间: 20220302
...p); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function():void{ //使用差速来体现移动 box.transform.translate(new Vector3(0,0.05,0),false); camera.transform.translate(new Vector3(0,04,0),false); }); })); ``` ![](img/3.gif)(图3)
来源: Laya2.0_文档 发布时间: 20210715
...省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function() { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 67.26 M...
来源: Laya2.0_文档 发布时间: 20210715
...省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 6...
来源: Laya2.0_文档 发布时间: 20210715
...eControl.js:54) at GameControl.onUpdate (GameControl.js:39) at TimerHandler.__proto.run (laya.core.js:7533) at Timer.__proto._update (laya.core.js:7271) at Stage.__proto._updateTimers (laya.core.js:31106) at Stage.__proto.render (laya.core.js:31071) 附件 : --> 2019-07...
来源: Laya_社区 发布时间: 20190716
...省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 6...
来源: Laya2.0_文档 发布时间: 20210715
...动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.timer.currTimer * 0.002; for (var i = 0, n = this.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this...
来源: Laya2.0_文档 发布时间: 20210715
...动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.timer.currTimer * 0.002; for (var i = 0, n = this.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this...
来源: Laya2.0_文档 发布时间: 20210715