• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 383 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0042 秒)

141. 微信上测试加载服务器资源 [ 70%]

...务器资源 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

142. 严重问题资源销毁不了 [ 70%]

... 我先加载一个图集,然后执行销毁 Laya.loader.clearRes("res/atlas/mainTown.json"); 但内存并没回收,查看代码也执行了销毁过程,但内存就没没减下来。   还有个问题: 如果只是加载资源,不添加到显示对象上,内存是不是不好增加呀 ...

来源: Laya_社区 发布时间: 20170415

143. laya获取图片像素后重新设置回去带有透明像素的地方显示有问题 [ 70%]

...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

144. 内存释放问题 [ 70%]

...但是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

145. ani如何实现预加载呢? [ 70%]

...的情况下 动画只会播放一半.  附代码: 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

146. 技术文档中的示例js运行报错 [ 70%]

...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

147. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 69%]

...链接 提交 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

148. 资源销毁问题疑问 [ 69%]

...前场景下的资源销毁掉呢 Laya.loader.clearTextureRes("res/fighter.atlas") 这一步 销毁的是图集所保护的所有资源吗?还是说 需要 把所有用到的小图地址都销毁一遍 比如 Laya.loader.clearTextureRes("res/re1.jpg"); Laya.loader.clearTextureRes("res/re2.jpg"); L...

来源: Laya_社区 发布时间: 20171122

149. 加载-销毁Texture使用的图片资源 [ 69%]

...发更高效。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

150. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 69%]

...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