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

大约有 3,272 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0059 秒)

2981. 论坛里的截图方法实现后渲染截图的图片显示效果问题 [ 43%]

...加的元素始终保持在最底部显示? LayaFlash:求ByteArray.jas ->readMultiByte对gb2312的实现翻译 关于Laya实现Matter.js官方案例凹多边形的问题 在List渲染的时候,在滚动一个list的时候,如何实现另一个list也跟着滚动,并且两个list同时滚...

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

2982. 安卓闪退,有日志 [ 43%]

...1/lib/arm64/liblayaair.so (laya::imp_JS2CFunc<void (laya::JSAudio::*)()>::call(v8::FunctionCallbackInfo<v8::Value> const&)+364) [arm64-v8a] 5 #04 pc 00000000009b6d1c /data/app/com.mylafe.game.handsomecat-1/lib/arm64/liblayaair.so (v8::internal::FunctionCallbackArguments::Call(void (...

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

2983. LayaBox进阶之UI管理类 [ 43%]

...e getView(clazz: any):Laya.Node{ for(let i:number =0 ; i<this.uiList.length ; i++){ let uiData = this.uiList[i]; if(uiData.clazz == clazz){ return uiData.view; } } }[/i]根据clazz名字获取本地缓存的场景类     下面是关闭场景,[i] public closeWindow(clazz: any): void { let v =...

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

2984. module写法的模块无法使用,其他地方使用会报错 [ 43%]

...Auto Import的功能实现的) import BM from './b'; window.onload = ()=>{ console.log(AM.AC.myname); console.log(BM.BC.myname); console.log(Laya.Browser.clientWidth); } 2018-10-26 0 1 分享 微博 QZONE 微信 177*****949 赞同来自: 你这个方法有个问题 : 当a类和b类 都使用一...

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

2985. 修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) [ 43%]

...addChild(res1); scene.addChild(res2);  Laya.timer.frameLoop(1, this, () => { res1.transform.localPositionX += 0.016; res2.transform.position.x += 0.016;  console.log("本地坐标1:", res1.transform.localPosition); console.log("世界坐标1:", res1.transform.position); console.log("本地坐...

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

2986. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 42%]

...代码是:Texture._create方法中if (bitmap.width && (x+width)> bitmap.width) 里的bitmap为null,往上看可能是source为null 但是仍然无法判断到是我的场景UI的问题还是代码的问题 2020-02-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

2987. Ease.elasticOut如何自定义参数,直接设置的话会变成number [ 42%]

...turn b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3; if (!a || (c > 0 && a < c) || (c < 0 && a < -c)) { a = c; s = p / 4; } else s = p / PI2 * Math.asin(c / a); return (a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * PI2 / p) + c + b); }可以按照原来的函...

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

2988. webGL模式下 graphic画线涂鸦,一直不停画会出现线条异常 [ 42%]

...os1.y=this.bmp.mouseY; if(Utils3D.getThis.getDistance(this.pos0,this.pos1)>10){ this.bmp.graphics.drawLine(this.pos0.x,this.pos0.y,this.pos1.x,this.pos1.y,"#ff0000",5); this.pos0.x=this.bmp.mouseX; this.pos0.y=this.bmp.mouseY; } } __mouseUp(e:Event){ this.bmp.off(Laya.Event.MOUSE_MOVE, this, this...

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

2989. 请教下微信小游戏的内存和数据缓存? [ 42%]

...重复利用。 hill_0219 • 2018-01-22 10:37 let resArray: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type...

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

2990. 真机环境找不到window---cant find variable: window stack [ 42%]

...官方帮助, 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 为什么laya.pathfinding.js里面的Grid,通过Laya.Grid竟然获取不到?有laya.pathfinding.js的使用教程吗?API中没有找到。 设备的几个单例都获取不到 问题状态 最新活动: 2019-01-08 1...

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