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

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

801. 添加或修改物理ChainCollider属性points时,报错 [ 90%]

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

802. LayaAir 1.7.19 beta 声音播放这里有个bug吗? [ 90%]

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

803. laya1.0 绘制物理引擎? [ 90%]

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

804. Panel控件滑动区域不正常的问题 [ 90%]

...的点击区域 */ __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

805. Laya.loader.create 进度回调函数执行两次 [ 90%]

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

806. alertexception info: [Typeerror: null is not object (evaluating this. vaoext createvertexarrayoes"] [ 90%]

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

807. 如何通过代码控制prefab上面的时间轴动画animation? [ 90%]

...以添加 监听函数 监听动画播放结束 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

808. warning:Laya.timer.once This variable is not defined. [ 90%]

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

809. Sprite.loadImage();问题 [ 90%]

... function initMap(texture:Texture, bgID:int):void{             if(this.oldBgID != bgID){                 oldBgID = bgID;                 if(oldTexture){                     oldTexture.destroy(true);                     oldTexture = null;...

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

810. 打地鼠发布成微信小游戏后提示gameThirdScriptError this.preinitialize is not a function [ 89%]

打地鼠发布成微信小游戏后提示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