• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 116 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0027 秒)

71. 在Unity中导出拖尾系统(TypeScript-3D基础(TS)-LayaAir3D之拖尾系统) [ 57%]

...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

72. 骨骼动画播放完后,过一段时间后,设置插槽皮肤没有效果。是因为动画已经停止了的原因么 [ 57%]

...ext was not allowed to start. 骨骼动画播放完后的回调时间 Laya.timer.loop()如何停止 如何设置Sprite的宽高和点击区域? Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! 播放声音出错,求指教 播放背景音乐的问题 刚...

来源: Laya_社区 发布时间: 20180128

73. 最小化一定时间后心跳变成一分钟一次了 [ 57%]

最小化一定时间后心跳变成一分钟一次了 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

74. 在Unity中导出拖尾系统(ActionScript-3D基础(AS3)-LayaAir3D之拖尾系统) [ 57%]

...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

75. 销毁资源并释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 56%]

...省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function() { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 67.26 M...

来源: Laya2.0_文档 发布时间: 20210715

76. 销毁资源并释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 56%]

...省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 6...

来源: Laya2.0_文档 发布时间: 20210715

77. prefab添加runtime脚本 comp._addComponentInstance is not a function [ 56%]

...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

78. 销毁资源并释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 56%]

...省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁 mesh.destroy(); }); })); ``` **加载完成** 在资源全部加载完成之后,我们可以看到 6...

来源: Laya2.0_文档 发布时间: 20210715

79. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 56%]

...动半径数组 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

80. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 56%]

...动半径数组 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