大约有 988 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0057 秒)
Laya_社区(687) Laya2.0_文档(163) Laya_示例(51) Laya2.0_示例(43) Laya3.0_api(20) Laya3.0_文档(20) laya_api(2) Laya2.0_api(2)
...了,用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
...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
...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
...位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError)); // 绑定convertToBaiduCoord作用域 __JS__("this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this)"); } ``` 由于本例不需要使...
来源: Laya2.0_文档 发布时间: 20210715
...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
...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
...么 先不写多余参数 Laya.loader.create("res/Cube.ls",Laya.Handler.create(this,this.completeHandler));
来源: Laya_社区 发布时间: 20190515
回调函数... constructor(){ Laya.loader.load(this.skins, Handler.create(this, this.onUIAssetsLoaded)); } aaa() { } function onUIAssetsLoaded( this.aaa();//为什么回调函数不能调用,undefined } 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20170626
...ader.create("LayaScene_FloorChallenge/Conventional/FloorChallenge.ls",Laya.Handler.create(this, this.completeHandler,null,false));的时候,就出现图片出现的内存问题了 附件 : --> 2018-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20181227
...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