大约有 419 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0050 秒)
Laya_社区(293) Laya2.0_api(75) Laya3.0_文档(23) Laya2.0_文档(19) laya_api(3) Laya3.0_api(2) Laya2.0_示例(2) Laya_示例(2)
...这张图片。 但是我换个默认的图集Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.createView)); 却能拿到图集中的图片。是我打包图集的问题吗?这两个图集的.atlas文件都有在res下面啊。 2018-03-26 添加评论 免费帖 --> 分享 微博 ...
来源: Laya_社区 发布时间: 20180326
...igLoaded=function(){ Laya.init(600,400); Laya.loader.load([{url:"res/atlas/comp.json",type:"atlas"}],Handler.create(this,this.onLoadUi)); } __proto.onLoadUi=function(){ Laya.timer.loop(100,this,this.onLoaded); } __proto.onLoaded=function(){ if(this.isOpen){ return; } this.isOpen=true; var testView=n...
来源: Laya_社区 发布时间: 20190517
...draw); } private function draw():void { texture = Laya.loader.getRes("comp/lhjicon_5.png"); var temp:Texture = Texture.createFromTexture(texture,0,0,texture.sourceWidth/2,texture.height/2); IconSpr.graphics.drawTexture(temp,0,0,temp.sourceWidth,temp.height); temp.destroy(true); } 这样 ...
来源: Laya_社区 发布时间: 20180118
...自己的图片时,发现无法平铺,而就是官方demo中自带的comp.png也无法平铺,不知道对格式要求是什么样,下面把案例上传了,该案例中用同种方式显示了三张不同的图,可以发现,就只有官方纹理平铺案例的素材可以展现效果,...
来源: Laya_社区 发布时间: 20200523
...onLoaded),Handler.create(this, onProgress)); //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded),Handler.create(this, onProgress)); } private function onProgress(v:Number):void { trace("onProgress",v); } 不管添加多少资源,onProgress都只会调用一次 之后...
来源: Laya_社区 发布时间: 20180428
...0)) as Camera; camera.transform.translate(new Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状态。 (图2) 在场景显示出来后,我们可以看到在 **Stat** 面板中 **GPUMemory** 有一个比较明显的涨幅。 ...
来源: Laya2.0_文档 发布时间: 20210715
...a.Camera; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状态。 (图2) 在场景显示出来后,我们可以看到在 **Stat** 面板中 **GPUMemory** 有一个比较明显的涨幅。 ...
来源: Laya2.0_文档 发布时间: 20210715
...面加载有哪些回调方法可用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoaded方...
来源: Laya_社区 发布时间: 20170720
...vivo】2d图集加载不上 Laya.loader.load(url,Handler.create(this,onLoadComplete),null,Loader.ATLAS); 用Loader.ATLAS图集类型加载失败 附件 : --> myLaya.zip 2019-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20191106
...DE2.0项目发布为微信小游戏,预制体被忽略上传怎么办? comp下的button.png第一次点击进入另一个界面,再在这个界面下点击时点击事件不生效? 打包apk后,进入游戏提示加载游戏失败,可能由于你的网络不稳定,请退出重进 3d项...
来源: Laya_社区 发布时间: 20171228