大约有 383 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0042 秒)
Laya_社区(319) Laya2.0_文档(40) Laya3.0_文档(12) Laya2.0_示例(4) Laya_示例(4) Laya3.0_api(2) Laya2.0_api(2)
...务器资源 URL.basePath = "http://212.xx.xx.xx/"; Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,loadComplete)); loadComplete(){显示自己的ui}; 项目设置选择不校验合法域名。(我没有配置域名,用IP可以吗?) 发现comp.atlas是加载下来了,图片不...
来源: Laya_社区 发布时间: 20190116
... 我先加载一个图集,然后执行销毁 Laya.loader.clearRes("res/atlas/mainTown.json"); 但内存并没回收,查看代码也执行了销毁过程,但内存就没没减下来。 还有个问题: 如果只是加载资源,不添加到显示对象上,内存是不是不好增加呀 ...
来源: Laya_社区 发布时间: 20170415
...ive = new Array(); alive.push({url:"res/FGUIMain/Common_atlas0.png", type:Laya.Loader.IMAGE}); Laya.loader.load(alive, Laya.Handler.create(this, this.LoadFinish)); } private LoadFinish(success:boolean):void { if(suc...
来源: Laya_社区 发布时间: 20210618
...但是Laya.loader下面的_infoPoll 没有发生变化,就是还有res/atlas/effect/playerEff/shengji.json的信息。 for (let i = len - 1; i >= 0; i--) { key = this._poolDic.keys temp = this._poolDic.get(key); if (temp) {...
来源: Laya_社区 发布时间: 20170905
...的情况下 动画只会播放一半. 附代码: Laya.loader.load("res/atlas/res.json", Laya.Handler.create(this, onLoaded), Laya.Handler.create(this, onLoading), Laya.Loader.ATLAS); 我是在onLoaded里面用游戏资源的.... 2017-07-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20170701
...ya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() function onLoaded() { var cMask = new maskDemoUI() Laya.stage.addChild(cMask) } })() 附件 : --> 2018-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180810
...链接 提交 1 个回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("res/atlas/test0.png"); ape = new Sprite(); var matrix:Matrix = new Matrix(); matrix.a = -1; ...
来源: Laya_社区 发布时间: 20170221
...前场景下的资源销毁掉呢 Laya.loader.clearTextureRes("res/fighter.atlas") 这一步 销毁的是图集所保护的所有资源吗?还是说 需要 把所有用到的小图地址都销毁一遍 比如 Laya.loader.clearTextureRes("res/re1.jpg"); Laya.loader.clearTextureRes("res/re2.jpg"); L...
来源: Laya_社区 发布时间: 20171122
...发更高效。let PathBg = "res/bg2.png", PathFly = "res/fighter/fighter.atlas"; class Loader_ClearTextureRes { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser...
来源: Laya2.0_示例 发布时间: 20240929
...bitmap属性上锁。 ```js init() { //加载场景 Laya.loader.load('res/atlas/comp.atlas',Laya.Handler.create(this,this.onComplete)); } onComplete(){ //获取图集中的一个单图 var a = Laya.loader.getRes('comp/button.png'); //通过单图的bitmap对图集加锁 a.bitmap.lock = true; } ```
来源: Laya2.0_文档 发布时间: 20210715