大约有 959 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0186 秒)
Laya_社区(662) Laya2.0_文档(158) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(27) Laya3.0_api(20) laya_api(3) Laya2.0_api(2)
...g.json"; traceMsg("加载: " + jsonURL); Laya.loader.load(jsonURL, Handler.create(this, readJsonFinish, [jsonURL]), null, Loader.JSON); } private function readJsonFinish(url:String = null):void { traceMsg("readJsonFinish - 加载成功: " + url); // 返回的是 * 类型,要不要先解析成字...
来源: Laya_社区 发布时间: 20180227
...况描述: 使用Laya.loader.load加载2d和声音资源使用 Laya.loader.create加载3D场景和模型资源 问题描述: 预加载效果不明显(每次进入时,加载进度都非常慢,需要花半分钟加载,20mb的资源)加载模型时,得到的进度值,从0开始,进度变化...
来源: Laya_社区 发布时间: 20180507
...器上面,然后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) }, null, false)) 项目是微信小游戏 基本...
来源: Laya_社区 发布时间: 20180808
...howall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); originalApe.x = (Laya.stage.width...
来源: Laya2.0_文档 发布时间: 20210714
...回复 cuixueying 赞同来自: { Laya.loader.load("ui/image.png", Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var texture:Texture=Loader.getRes("ui/image.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture); Laya.stage.addChild(sp...
来源: Laya_社区 发布时间: 20170603
...行。 ``` Laya.loader.load("http://118.17.23.1:9877/xxx.js", Handler.create(this, onLoad));//as3 ``` 2017-10-25 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 可以的,直...
来源: Laya_社区 发布时间: 20171025
...nimation的内存大小 this.animation.loadAtlas(this.resUrl, Laya.Handler.create(this, this.loadCompleted, [completeFun]), this.resUrl); 2017-09-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞...
来源: Laya_社区 发布时间: 20170905
...id { Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(this, function (): void { this.changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")) as Laya.Button; this.changeActionButton.size(160, 40); this.changeActionBut...
来源: Laya_示例 发布时间: 20251209
...FILENAME_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.beginLoad)); } private beginLoad(): void { console.debug("aaaaaaaaaaaaaaaaa"); var img = new Laya.Sprite(); img.loadImage("res/test.jpg"); Laya.stage.addChild(img); } } new GameMain(); 调试的时候可以...
来源: Laya_社区 发布时间: 20180416
...回复 兜里有糖。 赞同来自: Codee 加载的时候用 laya.loader.create 不用loader.load 试一下 2018-09-21 1 2 分享 微博 QZONE 微信 hj 赞同来自: 你发一下demo过来吧 2018-09-21 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经...
来源: Laya_社区 发布时间: 20180920