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

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

391. 在脚本里自定义IDE属性预制体数组类型获取的结果不对 [ 70%]

...了,用prefab内容也是json的。 Laya.loader.create("prefab/car.json",Handler.create(this,onCar)); public function onCar(obj:Object):void{ var spr:Prefab = new Prafab();              spr.json=obj;             var car:Sprite = Pool.getItemByCreateFun("Car", this.spr.creat...

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

392. 引用的类库问题 [ 70%]

...s=null; this._selectedIndex=0; ViewStack.__super.call(this); this._setIndexHandler=Handler.create(this,this.setIndex,null,false); } __class(ViewStack,'laya.ui.ViewStack',_super); 1. ViewStack.__super.call(this); 2. __class(ViewStack,'laya.ui.ViewStack',_super); 这两句代码是什么意思 2018-03...

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

393. WXOpenDataViewer 微信开放数据域 是不是不能响应鼠标拖动事件呢? [ 70%]

...main.ts 里面 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); 和 Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded)); 都要删掉。 内涵tv何吓...

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

394. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 70%]

...位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError));   // 绑定convertToBaiduCoord作用域 __JS__("this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this)"); } ``` ​ 由于本例不需要使...

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

395. 微信小游戏加载外部json可以加载成功,但是加载外部图片就不行,没有任何反应 [ 69%]

...zz.shoujiyeyou.net/ ... ot%3B, "https://xxdzz.shoujiyeyou.net/ ... ot%3B], Handler.create(this, this.onLoaded), null, "json");   Laya.loader.load(["https://xxdzz.shoujiyeyou.net/mmphp/19.png"], Handler.create(this, this.nlll), null, "image");   一样的代码,上面加载json就可以,下面...

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

396. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 69%]

...e = new Sprite(); sp.loadImage("res/apes/monkey2.png", 0, 0, 0, 0, Handler.create(this, function() {     console.log(sp.width, sp.height); })); Laya.stage.addChild(sp); ``` ​ loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 3. **直接调用size设置...

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

397. Laya1.7.20如何加载3d资源? [ 69%]

...么 先不写多余参数 Laya.loader.create("res/Cube.ls",Laya.Handler.create(this,this.completeHandler));

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

398. 回调函数... [ 69%]

回调函数... constructor(){ Laya.loader.load(this.skins, Handler.create(this, this.onUIAssetsLoaded)); } aaa() { } function onUIAssetsLoaded( this.aaa();//为什么回调函数不能调用,undefined } 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

399. 内存不够,在哪里设置? [ 69%]

...ader.create("LayaScene_FloorChallenge/Conventional/FloorChallenge.ls",Laya.Handler.create(this, this.completeHandler,null,false));的时候,就出现图片出现的内存问题了 附件 : --> 2018-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

400. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 69%]

...var sp=new Laya.Sprite(); sp.loadImage("res/apes/monkey2.png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); ``` loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 1. **直接调用size设置:** ```typescr...

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