大约有 426 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
Laya_社区(344) Laya2.0_文档(27) Laya3.0_api(21) Laya3.0_文档(12) Laya2.0_示例(9) Laya_示例(9) laya_api(2) Laya2.0_api(2)
...``typescript if(Laya.Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用...
来源: Laya2.0_文档 发布时间: 20210715
[LayaAir3]Laya.loader 加载png图片失真 Laya.loader.load(url, { type: Laya.Loader.TEXTURE2D, propertyParams: { premultiplyAlpha: true, // 不预乘alpha ...
来源: Laya_社区 发布时间: 20250819
...红框内的修改 if (Browser.onMiniGame){ console.log(1); tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ console.log(2); tSound=new soundClass(); tSound.load(url); if (Browser.onMiniGame){ Loader.cacheRes(url,tSound); } }; 2个if判断...
来源: Laya_社区 发布时间: 20190108
引擎1.7.18 新增Loader的preLoadedMap属性怎么用 引擎1.7.18 新增Loader的preLoadedMap属性在API中没有.请问具体怎么用啊? 有Demo之类的嘛? 2018-05-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...
来源: Laya_社区 发布时间: 20180524
...调。这个是异步获取,如果你要单个获取的话 window.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _th...
来源: Laya_社区 发布时间: 20180530
...载了 var resArray = [ {url:"res/atlas/comp.json", type: Laya.Loader.ATLAS}, {url:"res/atlas/assets.json", type: Laya.Loader.ATLAS} ]; Laya.loader.load(resArray, Laya.Handler.create(null,LoadResComplete)); cuixueying • 2017-03-21 16:15 好的,谢谢你的建议,我们会...
来源: Laya_社区 发布时间: 20170317
...创建 package { import laya.events.Event; import laya.net.Loader; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 ...
来源: Laya_社区 发布时间: 20170608
...ew Laya.Sprite();绘制图形以后,怎么删除释放资源? 请问下loader如何强制加载一个文件,避免浏览器的缓存 为什么有的图片打包,有的图片不打包? 如图 问题状态 最新活动: 2020-09-22 17:07 浏览: 2135 关注: 1 人
来源: Laya_社区 发布时间: 20200922
...板,urls接收的是图片地址集合,所以我们需要先使用Laya.loader.load()将图集文件先加载进来。下面我们直接看示例代码及注释。 ```typescript // 程序入口 class AtlasAniDemo{ private roleAni:Laya.Animation; constructor() { //初始化舞台 Laya.init(1334,75...
来源: Laya2.0_文档 发布时间: 20210715
...e { this.DoLoadData(url); } } protected DoLoadData(url:string):void { Laya.loader.load(url, Laya.Handler.create(this, this.OnLoadDataCb)); } protected OnDownloadFileInWxOk(args:any, result:any, data:any):void { console.log("OnDownloadFileInWxOk"); console.log("" + result + ", data: " + data); if (re...
来源: Laya_社区 发布时间: 20180604