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

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

201. Laya.SoundManager.playSound 无法播放出音效 [ 75%]

...不能正常播放,也没有任何错误提示 然后尝试先调用Laya.loader.load("sfx/hit01.mp3",new Laya.Handler(this,this.onBgmComplete),null,Laya.Loader.SOUND);然后在onBgmComplete的回调里面再调用播放,就会提示 [warn]Retry to load: sfx/hit01.mp3 [error]Failed to load: sfx/h...

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

202. 场景create之后怎么把数据缓存到本地。下次尽量读本地 [ 75%]

...ion 的createFrames 使用已经加载的图集缓存动画失败 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2018-07-02 11:46 浏览: 907 关注: 2 人 差不多先生 • 2018-07-02 11:50 Laya 场景通过create之后 下载的数据有没有...

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

203. Laya.URL.basePath与Laya.loader.load用法 [ 75%]

Laya.URL.basePath与Laya.loader.load用法 你好,layabox小白一枚,求教Laya.URL.basePath与Laya.loader.load用法,谢谢 2016-12-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: ...

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

204. clearUnLoaded的bug LayaAirIDE1.7.9 [ 75%]

... arr = [res.popup.atlas("loadingUI"), res.download.bg("bg5")]     Laya.loader.load(arr, Laya.Handler.create(this, onComplete))     Laya.loader.clearUnLoaded()     Laya.loader.load(arr, Laya.Handler.create(this, onComplete)) }  function onComplete(){     trace("complete") } Resources...

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

205. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 75%]

...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),1...

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

206. 不带格式后缀的图片无法成功加载 [ 75%]

...lstatp-toutiao.com/obj/ad.union.api/e285dd263aee2e8f7b302fa8d139de4c' Laya.loader.load(url, Laya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 n...

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

207. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 75%]

...载纹理资源,如果要使用纹理压缩格式,则需要使用`Laya.loader.load()`来加载纹理资源。 示例代码如下所示: ```typescript //检测安卓平台 if (Laya.Browser.onAndroid) { //注意这里的加载 Laya.loader.load("res/layabox.ktx", Laya.Handler.create(null, functio...

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

208. 小游戏内 个别手机出现图片花了 像马赛克一样的东西,很多图片不显示 [ 75%]

...dData = [ { "url": 'res/atlas/main.atlas', "type":Laya.loader.ATLAS }, { "url": 'res/atlas/newUser.atlas', "type":Laya.loader.ATLAS }, { 'url': "res/atlas/role_skin.atlas", "type":Laya.loader.ATLAS }, { 'url': "res/atlas/number.atlas&q...

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

209. laya底层的加载为什么可以new两次 [ 75%]

laya底层的加载为什么可以new两次 laya.net.Loader.as  第222行 new HTMLImage.create(url, {onload: onload, onerror: onerror, onCreate: function(img:*):void { image = img; //增加引用,防止垃圾回收 imgCache[url] = img; }}); 这里的调用create本身就是返回一个对象了...

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

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

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