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

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

21. Laya.Loader.getRes请教 [ 84%]

UI相关问题 Laya.Loader.getRes请教 Laya.loader.load("res/atlas/games/game_13/image.atlas", Handler.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但...

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

22. 粒子中引用的图片能合图吗 [ 84%]

...Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void {     Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: ...

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

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

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

24. 提示资源重复加载 [ 83%]

...this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this...

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

25. 微信小游戏编译出错 [ 82%]

...:39 @Laya_Aaron:ascii编码? private var assetArr:Array=[{url: "res/atlas/comp.atlas"}, {url: "res/atlas/wxlocal.atlas"}, {url: "res/atlas/middleMoive.atlas"}, {url: "res/atlas/resoutel.atlas"}, {url: "res/atlas/texiaolanse.atlas"}]; 我直接load ...

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

26. 内存释放问题 [ 81%]

... { /** * 模块资源路径 */ private static moduleResPath: string = 'res/atlas/{0}.json'; /** * 模块的资源名称和模块的主面板(模块的主面板类全名,模块资源图集名称[]) * @type {Laya.Dictionary} * @memberof ResourcesModuleManager */ public static poolModulResDic: La...

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

27. 无法正常运行官网中的示例代码 [ 81%]

...oad resource: net::ERR_FILE_NOT_FOUND [warn]Retry to load: D:/demo/bin/res/atlas/comp.json Failed to load resource: net::ERR_FILE_NOT_FOUND [error]Failed to load: D:/demo/bin/res/atlas/comp.json 2017-03-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

28. button图片丢失 [ 81%]

...回复 cuixueying 赞同来自: 189*****192  Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"comp/btn_queding.png",type:Loader.IMAGE}], Handler.create(this, onAssetLoaded), null);comp.json是预加载的图集下的资源,你既然是不打包,表示资源没有打包到...

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

29. LayaAir IDE 1.7.16beta 图集打包就产生一个.res文件 [ 81%]

...tions/LayaAirIDE_beta.app/Contents/Resources/app/out/vs/layaEditor/libs/TP/atlas-generator" -S 2048 -s 512 "/Users/passionzhang/Develop/wegame/wordwar/laya/assets/comp" -o "/Users/passionzhang/Develop/wegame/wordwar/laya/assets/atlas" --dataFormat json --scale 1 --force newPro.js:1251 nullQCommandLi...

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

30. Laya.loader Progress回调形同虚设 [ 80%]

...this, onLoaded),Handler.create(this, onProgress)); //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded),Handler.create(this, onProgress)); } private function onProgress(v:Number):void { trace("onProgress",v); }    不管添加多少资源,onProgress都只会调用一次  ...

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