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

大约有 14 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0020 秒)

11. laya.net.Loader_API3.0 [ 68%]

... offAll offAllCaller on once cacheRes clearRes clearResByGroup createNodes getAtlas getBaseTexture getRes getTexture2D registerLoader setGroup warn Constructors constructor new Loader(): Loader Defined in laya/net/Loader.ts:176 创建一个新的 Loader 实例。 注意:请使用Laya.loader加载...

来源: Laya3.0_api 发布时间: 20231115

12. 播放swf动画的时候,会出现 Cannot read property 'dir' of undefined崩溃 [ 67%]

...undefined崩溃 这个是出错信息 this.basePath=this._atlasPath?Loader.getAtlas(this._atlasPath).dir:this._url.split(".swf")[0]+"/image/";    我们采用的播放模式是this.effectMovieClip.load(effectsPath,true);  effectsPath 是路径 我们的swf 文件在附件中, 附件 : --> booms...

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

13. 版本管理swf找同名的Json文件发现找不到 [ 65%]

...lasPath']);             var atls_ary:Array<any> = Loader.getAtlas(this['_atlasPath']);             this.basePath=atls_ary['dir'];                 //this.basePath = "map1.swf";             this['_initData'](data);         }     } ...

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

14. Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 [ 53%]

...e(this,function(bit){                 var arr = Laya.Loader.getAtlas(this.skPath);                 arr.forEach(resUrl=>{                     var tex = Laya.Loader.getRes(resUrl) as Laya.Texture;                     tex.bitmap = b...

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