大约有 645 项符合查询结果, 库内数据总量为 30,970 项。 (搜索耗时: 0.0060 秒)
...我们可以用加载器预加载。 2D游戏资源我们是用**Laya.loader.load()**方法预加载,而3D资源必须用Laya.loader.create()这个方法。在加载完成后,我们就可以直接使用**Laya.loader.getRes()**这个方法来获取加载完成的资源。请参考的相关的...
来源: Laya2.0_文档 发布时间: 20210715
...,,,, 加载一张图片,然后获取texture var texture = Laya.loader.getRes(url); 然后texture调用texture.destroy(true); 销毁图片, 那下次要使用该图片的时候,还需要重新加载吗,, 是不是我下次使用的时候,我可以直接去调用加载load( load...
来源: Laya_社区 发布时间: 20171226
clearRes内存泄漏 使用Laya.loader.clearRes之后重新加载图片,会有内存泄漏 附件 : --> DemoClearRes.zip 2018-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 OneWay 赞同来自: Laya.loade...
来源: Laya_社区 发布时间: 20180425
Loader 加载一张图片后,可以把这张图片改名字吗 您好,各位大神好。 请问:Loader 加载一张图片后,可以把这张图片改名字吗。 比如:图片图径是res/a.png, 用Loader加载:Laya.loader.load([{url:"res/a.png", type:Laya.Loader.IMAGE}]); 现在...
来源: Laya_社区 发布时间: 20200507
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#ffffff"; Laya.loader.load([this.texture1, this.texture2], Handler.create(this, this.onAssetsLoaded)); } private onAssetsLoaded(): void { this.ape = new Sprite(); Laya.stage.addChild(this.ape); this.ape.pivot(55, 72); this.ape.pos(100,50); ...
来源: Laya2.0_文档 发布时间: 20210715
...,临时你也可以通过修改代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find")...
来源: Laya_社区 发布时间: 20180907
在加载多个资源的时候,加载进度异常 Laya.loader.load(["res/atlas/images.atlas", "res/atlas/f1.atlas", "res/atlas/f2.atlas", "res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"], Laya.Handler.create(this, function(){ }), Laya.Handler.create(this, function(e){ c...
来源: Laya_社区 发布时间: 20180101
...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderProperties | Methods | Events | Constants Packagelaya.netClasspublic class LoaderInheritanceLoader EventDispatcher Object Loader 类可用来加载文本、JSON、XML、二进制、图像等资源。 Public Properti...
来源: Laya2.0_api 发布时间: 20190513
2d资源和3d资源没有统一的加载接口? 加载2d Laya.loader.load 加载3d Laya.loader.create 有没有统一的接口呢? 2018-11-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...
来源: Laya_社区 发布时间: 20181128
...ang 赞同来自: 1.设置baseUrl为:http://image.xxx.com/ 2. 使用Laya.loader.load("1.png",Laya.Handler.create(this,this.complete)); 3.//加载完成回调处理 complete():void{} 2018-05-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...
来源: Laya_社区 发布时间: 20170220