大约有 28 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0054 秒)
请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 如题,API上并没有明确标出。看这两个Loader所在的包名net,好像是都支持网络资源的加载,但atlas和png放在网络服务器同...
来源: Laya_社区 发布时间: 20180528
关于Laya.loader.load和getRes的问题 我正在阅读这个示例:https://layaair.ldc.layabox.co ... Image 以下是原文的代码,也是我疑问的地方:// 方法2:使用drawTexture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Te...
来源: Laya_社区 发布时间: 20170804
ani时间轴动画问题 Laya.loader.load("res/atlas/move.json", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); //添加到舞台 ...
来源: Laya_社区 发布时间: 20171012
...的资源地址。</p> * <p>因为返回值为 LoaderManager 对象本身,所以可以使用如下语法:Laya.loader.load(...).load(...);</p> * @param url 要加载的单个资源地址或资源信息数组。比如:简...
来源: Laya_社区 发布时间: 20180502
...的资源地址。</p> * <p>因为返回值为 LoaderManager 对象本身,所以可以使用如下语法:Laya.loader.load(...).load(...);</p> * @param url 要加载的单个资源地址或资源信息数组。比如:简...
来源: Laya_社区 发布时间: 20180418
...7-10-25 16:48 @q8196901:json文件需要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢
来源: Laya_社区 发布时间: 20171025
...的语句加载资源,每次加载完成后回调loadselectanimation Laya.loader.load(picurl,Handler.create(this, this.loadselectanimation,arrr),null,Loader.ATLAS); 现在的问题是,同一个资源第二次加载的时候,就不执行回调函数了. 是不是第一次加载以后有缓存了,第...
来源: Laya_社区 发布时间: 20171103
...create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/icon.atlas" }, { url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya.Loader.ATLAS) } function progress() { (function loading() { Laya.loader.load([{ url...
来源: Laya_社区 发布时间: 20180710
启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 启用版本管理后,文件都带了hash, var resArray = [ {url: "res/atlas/common.atlas", type: Laya.Loader.ATLAS}, {url: "hall/1_login/login_bg.png", type: Laya.Loader.IMAGE}, {url: "hall/1_login/Bott...
来源: Laya_社区 发布时间: 20180426
...*=null):void { // var texture:Texture = Loader.getRes("res/Dragon.png"); // var data:ArrayBuffer = Loader.getRes("res/Dragon.sk"); factory = new Templet(); factory.on(Event.COMPLETE, this, onSkeletonDat...
来源: Laya_社区 发布时间: 20160902