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

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

191. 批量预加载如果是图片或者声音类型,不会触发加载错误事件 [ 67%]

...如果是图片或者声音类型,不会触发加载错误事件 用Laya.loader批量加载图片或者声音并指定加载类型时,如果加载错误,并不会触发错误事件。   Laya.loader.on(Laya.Event.ERROR, this, function(){ console.log("err"); }); Laya.loader.load([{url:"res/gene...

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

192. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 67%]

js环境下使用Loader加载图片在Sprite对象的.on函数无效 js环境下使用Loader加载图片在Sprite对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触...

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

193. hBox使用问题 [ 67%]

hBox使用问题 Laya.loader.load(picAy,Handler.create(this, onAssetLoaded)) private function onAssetLoaded():void { for(var i:int=0;i<picAy.length;i++) { var texture:Texture= Loader.getRes(picAy); var ape:Sprite = new Sprite; //ape.x=i*(stageWidth/4) //Tween.to(ape, { x : i*(stageWidth/4) },150...

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

194. 微信小游戏与加载图片时不会触发erroe事件 [ 67%]

微信小游戏与加载图片时不会触发erroe事件 Laya.loader.on(Laya.Event.ERROR, this, function(){ console.log("err"); }); Laya.loader.load([{url:"res/general/test.png",type:laya.net.Loader.IMAGE}]); 2018-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

195. [QQ小游戏适配] Laya.loader.create 在QQ安卓版本上 执行没有成功回调,也没有进度回调,监听了error 也没有。在ios版QQ上正常。 [ 66%]

[QQ小游戏适配] Laya.loader.create 在QQ安卓版本上 执行没有成功回调,也没有进度回调,监听了error 也没有。在ios版QQ上正常。 游戏适配QQ小游戏平台(不是玩一玩), 使用 Laya.loader.create 加载3d资源 *.lani动画资源 ,在iOS版本的QQ上...

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

196. 内存优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 66%]

...源的进度进行显示,下面的编码为就是错误的。 1. `Laya.loader.load(urls, Laya.Handler.create(this, onAssetLoaded), Laya.Handler.create(this, onLoading));` 在上面的代码中,使用`Laya.Handler.create(this,onLoading)`返回的回调方法,是要处理progress加载进度事...

来源: Laya2.0_文档 发布时间: 20210715

197. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 66%]

...成的回调里去获取你的texture并drawTexture // 程序入口 import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; class GameMain{ constructor() { Laya.init(600,400); this.hahaha(); } private hahaha(): void { var assets: Array<any> = []; assets.push(...

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

198. laya3.0中jszip使用异常 [ 66%]

...代码为: let zipUrl = "resources/files/config.zip";         Laya.loader.load([{ url: zipUrl, type: Laya.Loader.BUFFER }], null, Laya.Handler.create(this, this.onLoadCfg, null, false)).then(             (value) => {                 JSZip.loadAsync(value).then(           ...

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

199. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 66%]

...源的进度进行显示,下面的编码为就是错误的。 1. `Laya.loader.load(urls, Laya.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading));` 在上面的代码中,使用`Laya.Handler.create(this,this.onLoading)`返回的回调方法,是要处理progress...

来源: Laya2.0_文档 发布时间: 20210715

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

...       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(success)         { ...

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