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

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

2461. 如何解析json文件并获取某对象值? [ 67%]

...e jsonParse() { Laya.loader.load("res/atlas/resTest0.json", Handler.create(this, this.onLoaded), null, Loader.JSON); } private onLoaded() { var json : JSON = Laya.Loader.getRes("res/atlas/resTest0.json"); var jsTx = JSON.stringify(json); } 已经通过上面代码获取整个json内容,可我该...

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

2462. 怎么在api中找到 Laya.loader.load [ 67%]

...Laya.loader.load Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,this.onloaded),null,Laya.Loader.ATLAS); 这一句,我想找一下Laya.loader.load的使用说明和使用例子,但是不知道怎么找。在api里我开了Laya。 http://layaair.ldc.layabox.com/api/index.html?categ...

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

2463. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 67%]

...OWN, spe, onMouseDown);             Laya.stage.on(Event.MOUSE_UP, this, onMouseUp);             Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp);   } private function onMouseDown(e:Event):void {             spe.startDrag(new Rectangle(0,0,800,800)); } 鼠标点击Sprite报...

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

2464. 加载SK文件时,报错如下:Uncaught getUint16 error - Out of bounds [ 67%]

... - Out of bounds var roleTemp = new Templet(); roleTemp.on(Event.COMPLETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/...

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

2465. 如何在3D旋转中使用缓动 Laya.Tween.to()?官方示例我看过,不是旋转 [ 67%]

...动 Laya.Tween.to()? 我看过官方示例,不是旋转 Laya.Tween.to(this.camera.transform.localRotationEuler, { x: _vector3.x, y: _vector3.y, z: _vector3.z + (20 * Math.PI / 180) }, 500); 2017-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

2466. 微信小游戏环境下,load的参数ignoreCache设置为true时,并没有重新下载资源 [ 67%]

...9:41 Laya.loader.load("https://xxxx/image.png", new Laya.Handler(this, this.imageLoaded), null, Laya.Loader.IMAGE, 0, false, "", true); 代码是这样的,但是这个url的资源覆盖以后,还是不会发生变化

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

2467. 用IDE编辑器编辑好label,想弄点击文字变色功能,发现有问题 [ 67%]

...过测试都不知道是什么问题。以下是测试的简单代码: this.a6.on("click",this,onB);function onB(e) { etg = e.target; etg.color = "#ff0000"; } 2016-06-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

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

2468. 微信头像请求方式 [ 67%]

...ttpRequest = new Laya.HttpRequest(); httpRequest.once(Laya.Event.COMPLETE, this, (data)=>{ let byte = new Laya.Byte(data); byte.writeArrayBuffer(data, 4); let blob = new Laya.Browser.window.Blob([data], {type:'image/apng'}); let url = Laya.Browser.window.URL.createObjectURL(blob); showImg.skin = ...

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

2469. [LayaAir3]Script类型组件在销毁时没有在setupScript时添加的节点事件监听 [ 67%]

...回收Script组件之前,增加对当前owner的监听移除,即增加this.owner.offAllCaller(this); 附件 : --> 2025-07-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 layabox 赞同来自: 已在3.3.0正...

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

2470. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 67%]

...aya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //平面添...

来源: Laya2.0_文档 发布时间: 20210715