大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0076 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
this.tranfrom.translate(new Laya.Vector3(0,0,0), false);物体居然也能动?还是往奇怪的方向动,这些API到底有没有经过测试? 2017-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Fait...
来源: Laya_社区 发布时间: 20171109
...age.bgColor = "#232628"; Laya.loader.load(aniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.Loader.ATLAS); } createAnimation() { const Animation = Laya.Animation; let ani = new Animation(); Laya.stage.addChild(ani); ani.loadAtlas(aniConfPath); // 加载图集动画 ani.interva...
来源: Laya2.0_示例 发布时间: 20250227
...资源zip包已经上传 请各位大佬解答一下 //加载spine动画 this.skeleton = new Laya.Skeleton (); Laya.stage.addChild(this.skeleton); this.skeleton.pos(parseInt (npcPos[0]), parseInt (npcPos[1])); this.skeleton.load (this.curNpcInfo.npcPath); 附件 : --> 70003.zip 2019-05-16 ...
来源: Laya_社区 发布时间: 20190516
定时器会互相影响吗 Laya.timer.loop(10, this, this._loopRefresh, [], false);一个定时器用来倒计时 一个定时器有个延时执行Laya.timer.once(100, this, this._checkIsSame, [1], false); 这不是两个定时器吗 为什么第二个延时执行的时候第一个会停住啊 第...
来源: Laya_社区 发布时间: 20180914
...示 然后尝试先调用Laya.loader.load("sfx/hit01.mp3",new Laya.Handler(this,this.onBgmComplete),null,Laya.Loader.SOUND);然后在onBgmComplete的回调里面再调用播放,就会提示 [warn]Retry to load: sfx/hit01.mp3 [error]Failed to load: sfx/hit01.mp3 但是资源文件确实是存在的...
来源: Laya_社区 发布时间: 20180422
...i_imgs/icon_00313.png"; fish.scoreItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.s...
来源: Laya_社区 发布时间: 20180517
...er_png"); var mc_data = ResLoad.getInstance().getAtlasUrl("tiger_sk"); this.mFactory = new Laya.Templet(); this.mFactory.parseData(Laya.loader.getRes(mc_png),Laya.loader.getRes(mc_data)); this.skeleton = this.mFactory.buildArmature(1); 使用下面代码更换骨骼插槽纹理,无法更新...
来源: Laya_社区 发布时间: 20170120
...Size(width: number, height: number): void { var content: Box = this._content; var rectX = 0; var rectY = 0; if (this.vScrollBar) rectY = this.vScrollBar.value; if (this.hScrollBar) rectX = this.hScrollBar.value; content.width = ...
来源: Laya_社区 发布时间: 20211108
ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found 环境win10 layaboxide 2.6.0 beta 已经全局安装typescript,命令行 tsc -v,输出Version 3.8.3 nodejs 12.16.1 编译报错: semantic error TS2354: [31mThis syntax requires an imported he...
来源: Laya_社区 发布时间: 20200409
...,白鹭里加载我使用的是: import ProtoBuf = dcodeIO.ProtoBuf; this._protoBuilderMap ={user:ProtoBuf.loadProto(RES.getRes('user_proto'))}; 然后打包数据这样使用就可以了: let head: string = name.substring(0, name.indexOf('.')); let Message = this._protoBuilderMap[head].build(...
来源: Laya_社区 发布时间: 20171103