大约有 914 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)
Laya_社区(693) Laya2.0_文档(89) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(24) Laya3.0_api(19) laya_api(1) Laya2.0_api(1)
..., offset || Point.EMPTY, color)); else return null; } 代码示例: Laya.loader.load("resources/layaAir.png").then((res: Laya.Texture) => { let sp = new Laya.Sprite(); // 绘制填充纹理 sp.graphics.fillTexture(res, 0, 0, 500, 500, "repeat"); this.owner.addChild(sp); }); 运行效果: (...
来源: Laya3.0_文档 发布时间: 20251010
...map.json'; /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) } private onComplete(){ this.map = new Laya.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new ...
来源: Laya_社区 发布时间: 20190218
...init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png", Handler.create(this, __loadImageHandler)); } private function __loadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr...
来源: Laya_社区 发布时间: 20180302
...现在manifest.json中。此时在游戏中加载完atlas文件后会执行Loader.as的onLoaded中的如下代码 }else{ for (name in frames) { obj = frames[name];//取对应的图 tPic = pics[obj.frame.idx ? obj.frame.idx : 0];//是否释放 [i][b]url = URL.formatURL(directory + name); [/b][/i] cac...
来源: Laya_社区 发布时间: 20180415
... ]; this.isFirst = true; console.log('Gzdaze='); console.log(Gzdaze); Laya.loader.load(Gzdaze.dialogList, Handler.create(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqcloud.com/beta/book/bookLaya/img/progressBar$bar.png' from origin 'http://b...
来源: Laya_社区 发布时间: 20180208
...uot;../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.a...
来源: Laya_社区 发布时间: 20180604
...别对应的文件来自动加载嘛? 顺带补充:代码就是用laya.loader.create的,测试环境都没有问题。 2019-01-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 155*****949 赞同来自: 目...
来源: Laya_社区 发布时间: 20190102
...ya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/ function updateItem(cell, index) { cell.setImg(cell.dataSource); } function onLoaded(): void { var rankList = new Laya.List(); ...
来源: Laya_社区 发布时间: 20180507
...a.display.Sprite; import laya.display.Stage; import laya.net.Loader; import laya.renders.Render; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; import wawaji.Wawaji; /** * ....
来源: Laya_社区 发布时间: 20170822
...adImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d2scdn.com/2017/12/ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.scaleY = 1 ape.grap...
来源: Laya_社区 发布时间: 20171220