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

大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0253 秒)

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

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

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

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

815. 如何通过代码控制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

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

817. [LayaNative3]new CommondBuffer 没有回收释放,每次用完,直接给置成null,每次buffermemory都会增长,不会下降 [ 90%]

...收内存, 辗转到Command Buffer中的DrawMeshInstancedCMD 类中,this._curDrawMeshInstancedCMD = cmd.drawMeshInstance(this._mesh,0,this.transformMatrices,this._mat,0,this.materialBlock,this.transformMatrices.length); 这个方法中拿到这个DrawMeshInstancedCMD对象,然后执行recover...

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

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

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

820. timer无法执行 [ 89%]

...,可以正常执行,但是 constructor() { super(); //添加3D场景 this.onAwake(); //加载camera和light this.onStart(); //加载地面 this.loadGround(); //加载墙面 this.loadwall(); this.loopShoot(); } public loopShoot(): void{ Laya.timer.loop(1000, this, this.shootBall); }   public sho...

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