大约有 383 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0040 秒)
Laya_社区(319) Laya2.0_文档(40) Laya3.0_文档(12) Laya2.0_示例(4) Laya_示例(4) Laya3.0_api(2) Laya2.0_api(2)
...1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new Panel(); panel.vScrollBarSkin="comp/vscroll.png"; pa...
来源: Laya_社区 发布时间: 20161103
...机里是不一样的,咋回事? 手机: 网页: 代码: ani.loadAtlas("res/atlas/hero_"+_model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加...
来源: Laya_社区 发布时间: 20180307
...小写规则有没有基本的说明文档 比如: Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(null, onLoaded), null, Laya.Loader.ATLAS); Laya.loader.load(resArray, Laya.Handler.create(null,onLoaded)); loader与handler 2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170316
...录下。动画中用到的资源图集位于`项目根目录/bin/h5/res/atlas/`目录下,如图28所示。 ![图28](img/28.png) (图28) ### 3.2 在项目中使用时间轴动画 在项目中使用时间轴动画主要分为三步。 第一步:加载动画所需的图集。 ```java //加载图...
来源: Laya2.0_文档 发布时间: 20210715
怎么在api中找到 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.c...
来源: Laya_社区 发布时间: 20171017
...信小游戏上显示一个Dialog 代码如下: Laya.loader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但...
来源: Laya_社区 发布时间: 20180525
...景色 Laya.stage.bgColor="#fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,completeLoad),null,Loader.ATLAS); } public function completeLoad():void { //原始位图 createImg(200,50); //红色滤镜 createRedFilter(); //创建发光滤镜位图**/ createGlowFilter()...
来源: Laya_社区 发布时间: 20170811
...作。代码如下: var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload =...
来源: Laya3.0_文档 发布时间: 20230303
...ath = "https://*************/"; Laya.MiniAdpter.nativefiles = [ "res/ui/ui.atlas", "res/ui/png.png", "prefab", 'scene', ]; } 2019-03-27 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 bpmf_d 赞同来自: 1...
来源: Laya_社区 发布时间: 20190327
...a.Handler.create和new Laya.Handler有啥区别 layaair与layabox的区别 atlas目录下.json文件与.atlas的区别 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件? 请问Laya.loader.load资源缓存在哪里?能不能把...
来源: Laya_社区 发布时间: 20171213