大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0077 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...:Laya.ChainCollider=new Laya.ChainCollider(); chains.points="25,25,50,50"; this.sprite.addComponent(chains); 情况2:修改已有ChainCollider属性points时报错 在sprite下手动添加组建ChainCollider,使用代码更改属性points,则报错 var chains=this.sprite.getComponent(Laya.Chai...
来源: Laya_社区 发布时间: 20181128
LayaAir 1.7.19 beta 声音播放这里有个bug吗? 将 this.gain.gain.setTargetAtTime(v,this.context.currentTime,0); 最后一个参数改成 非 0 即可通过,这个为啥了? 难道 js 和 ts 这里有冲突吗? 我设置声音播放的是 Laya.SoundManager.playSound(url);url 是...
来源: Laya_社区 发布时间: 20180705
...raw.SetSprite(Laya.Render.canvas.getContext("2d")); debugDraw.SetDrawScale(this.worldScale); debugDraw.SetFillAlpha(0.5); debugDraw.SetFlags(PDynamic.b2DebugDraw.e_shapeBit | PDynamic.b2DebugDraw.e_jointBit); this.world.SetDebugDraw(debugDraw); Laya.timer.loop(1000/60,this,this.updateWorld); } ...
来源: Laya_社区 发布时间: 20190401
...的点击区域 */ __proto.setContentHitArea = function () { var content=this._content; var rect = new Laya.Sprite(); rect.graphics.drawRect(0, 0, this.contentWidth, this.contentHeight, "#000000"); content.hitArea = new Laya.HitArea(); content.hitArea.hit = rect.graphics; } 然后分别在panel的...
来源: Laya_社区 发布时间: 20170610
... Laya.loader.create(["Main/SMain.ls","Role/Role.lh"],Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出结果: 0.19186599730944645 0.525199...
来源: Laya_社区 发布时间: 20180619
alertexception info: [Typeerror: null is not object (evaluating this. vaoext createvertexarrayoes"] mac系统 laya 2.2.0 打包到xcode,build没有问题,真机和模拟器调试报错 alertexception info: [Typeerror: null is not object (evaluating this. vaoext createvertexarrayoes"]at line 102...
来源: Laya_社区 发布时间: 20191226
...以添加 监听函数 监听动画播放结束 ss.show.on(Event.COMPLETE, this, onAnimComplete); good luck:) 2019-02-15 0 0 分享 微博 QZONE 微信 nevercai 赞同来自: load之后实例化prefab,实例化之后就跟普通scene一样使用了。 ... let prefab:Laya.Prefab = Laya.loader...
来源: Laya_社区 发布时间: 20190215
warning:Laya.timer.once This variable is not defined. file:////Users/qykings/work/layaGame/src/view/game/logic/actors/actorClass/LocalPlayer.as (2000):warning:Laya.timer.once This variable is not defined. 更新到"1.7.16" mac layaAir 有这问题 win没有 好尴尬 2018-03-20 添加...
来源: Laya_社区 发布时间: 20180320
... function initMap(texture:Texture, bgID:int):void{ if(this.oldBgID != bgID){ oldBgID = bgID; if(oldTexture){ oldTexture.destroy(true); oldTexture = null;...
来源: Laya_社区 发布时间: 20171019
打地鼠发布成微信小游戏后提示gameThirdScriptError this.preinitialize is not a function gameThirdScriptError this.preinitialize is not a function TypeError: this.preinitialize is not a function 2018-08-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20180828