大约有 496 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0290 秒)
...Res("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh") as Laya.Sprite3D; this.scene.addChild(monkey); //获取角色动画组件 var ani = monkey.getChildAt(0).getComponent(Laya.Animator) as Laya.Animator; //创建一个动画动作状态 var state1 = new Laya.AnimatorState(); //设置动作状态...
来源: Laya2.0_文档 发布时间: 20210715
无法获得到tiled map的自定义属性 var isXg = this.tiledMap.getTileProperties(1, 30, "isXg"); 上面的一行代码获取块的自定义属性,bool型,但是获取的结果始终为null,传的值也没有问题。官方的文档上有讲的不够详细。 2018-12-09 添加评论...
来源: Laya_社区 发布时间: 20181209
...undManager.playMusic("resources/sound/dh/gril1.wav", 1,Laya.Handler.create(this,() => { })); console.log(soundChItem.position+""); console.log(soundChItem.duration+""); 附件 : --> 2023-05-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20230519
...tParams:["Folder1/Player1.lh","Folder2/Player2.lh"]}], Laya.Handler.create(this, () => { let player1 = Laya.loader.getRes("res/3d/Player/Folder1/Player1.lh").clone(); let player2 = Laya.loader.getRes("res/3d/Player/Folder2/Player2.lh").clone(); }));[/code]Laya 3.x版本 暂时未开放API加载...
来源: Laya_社区 发布时间: 20230316
...赞同来自: Laya.loader.load("res/sounds/light.mp3", Laya.Handler.create(this, ()=>{ console.log("load light.mp3"); Laya.SoundManager.playMusic("res/sounds/light.mp3"); Laya.SoundManager.playSound("res/sound...
来源: Laya_社区 发布时间: 20180814
...3 不行啊, 拿不到数据啊 Laya.loader.load(fileURL, Handler.create(this, null), null, Laya.Loader.JSON); let strJson: JSON = Laya.loader.getRes(fileURL); strJson: undefined
来源: Laya_社区 发布时间: 20180131
... Laya.loader.load("res/atlas/gameUI.atlas",Handler.create(this,this.gameStart)); } 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回...
来源: Laya_社区 发布时间: 20180105
...面》js版本中角色动画无法运行, 提示 var boneDatasCache=this._templet._animationDatasCache[0]; 运行异常 IDE版本1.7.14beta 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 Laya_A...
来源: Laya_社区 发布时间: 20180105
...类是场景类'); } } } 导出UI 导出后layaMaxUI.ts的内容如下/**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; import {base} from "../script/base/BaseScene"; import Base...
来源: Laya_社区 发布时间: 20200827
... 2 个回复 Laya_XS 赞同来自: d3maidian 初步看你的截图怀疑是thisd执行域可能错了,执行域错误大多数都是方法赋值回调导致的,你可以在方法赋值的地方加上方法.bind(this),如果分析错了,方面提供一个示例看下问题吗? 2017-02-22 1 0 ...
来源: Laya_社区 发布时间: 20170222