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

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

3001. 修改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

3002. 跳转场景后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

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

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

3005. 请教下微信小游戏的内存和数据缓存? [ 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

3006. 真机环境找不到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

3007. webstorm能编译ts代码到bundle.js 里面吗 [ 42%]

...令行方式执行) let useIDENode = process.argv[0].indexOf("LayaAir") > -1 ? true : false; //获取Node插件和工作路径 let ideModuleDir = useIDENode ? process.argv[1].replace("gulp\\bin\\gulp.js", "").replace("gulp/bin/gulp.js", "") : ""; let workSpaceDir = useIDENode ? process.argv[2].re...

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

3008. 基础使用 · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

...也可以是一个序列帧动画(atlas文件)的url。 文本处理:GTextField、GTextInput GTextField用于显示静态文本,是对引擎Text类的封装,支持显示普通文字、富文本、图文混排等。 GTextInput用于接收用户输入的文本,是对引擎Input类的封装...

来源: Laya3.0_文档 发布时间: 20251010

3009. Cannot read property 'load' of null [ 42%]

...eturn this.s_instance; } private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } public GetMap():Laya.Image { if(this.mapImg==null) { this.mapImg=new Laya.Image(); } return this.mapImg; } public LoadMapResource() { this.skins=[ "res/img/map/1.jpg",...

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

3010. 滤镜的集中实现 [ 42%]

...r blurFilter = new Laya.BlurFilter(); //设置模糊强度 blurFilter.strength = 5; //在坐标280,50创建位图 var img = createImg(420,280); //添加滤镜效果     img.filters = [blurFilter]; }       附件 : --> 2017-08-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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