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

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

161. 微信小游戏环境下,load的参数ignoreCache设置为true时,并没有重新下载资源 [ 66%]

...9:41 Laya.loader.load("https://xxxx/image.png", new Laya.Handler(this, this.imageLoaded), null, Laya.Loader.IMAGE, 0, false, "", true); 代码是这样的,但是这个url的资源覆盖以后,还是不会发生变化

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

162. 微信头像请求方式 [ 66%]

...ttpRequest = new Laya.HttpRequest(); httpRequest.once(Laya.Event.COMPLETE, this, (data)=>{ let byte = new Laya.Byte(data); byte.writeArrayBuffer(data, 4); let blob = new Laya.Browser.window.Blob([data], {type:'image/apng'}); let url = Laya.Browser.window.URL.createObjectURL(blob); showImg.skin = ...

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

163. 使用fairygui加载网络图片资源时,laya.core.js中的drawTexture会报错 [ 66%]

...re.js中, if (!tex.loaded){ tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,[tex,args]); }执行到这段时,报了tex.once不是一个function的错,但是Texture继承自EventDispatcher,有once这个方法的啊。 http://thirdqq.qlogo.cn/g?b=sdk&k=JZWZibBicdrSCia...

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

164. 预加载图集文集在小游戏端导致内存过高 [ 66%]

...", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1)); 使用这种方法动态加载资源导致内存很高,该怎么办? 和官网推荐的material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; Laya.URL...

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

165. 微信小游戏利用开放域好友关系链做排行榜 [ 66%]

...er;  class GameBootstrap{      public constructor(){         this.init();     }      private init():void{         //初始化微信小游戏         Laya.MiniAdpter.init(true);         //程序入口         Laya.init(600, 400,Laya.WebGL);   ...

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

166. 微信小游戏加载外部json可以加载成功,但是加载外部图片就不行,没有任何反应 [ 65%]

...net/ ... ot%3B, "https://xxdzz.shoujiyeyou.net/ ... ot%3B], Handler.create(this, this.onLoaded), null, "json");   Laya.loader.load(["https://xxdzz.shoujiyeyou.net/mmphp/19.png"], Handler.create(this, this.nlll), null, "image");   一样的代码,上面加载json就可以,下面加载image就...

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

167. 微信小游戏播放音效无法连续反复播放 [ 65%]

...nd._musicAudio;       }else {     /*  if(MiniSound._audioCache[this.readyUrl]){         tSound=MiniSound._audioCache[this.readyUrl]._sound;         }else{*/         tSound=MiniSound._createSound();     //  } 改成这样就OK了 2018-08-20 0 0 分享 微博 ...

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

168. 2.2.0beta2中,ui使用相对布局时初始化会报错 [ 65%]

...,设置了相对坐标 然后在初始化ui时报错 debug发现是因为this._widget没有值,   和以前的版本对比,是因为this._widget和super()的位置对调了,导致在createChildren()时_widget还没有进行初始化   2.2.0beta2   以前的版本   附件 : --> LayoutTes...

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

169. 微信小游戏内TextInput不能实现只输数字的功能 [ 65%]

...实现了,虽然笨了点,但还能用 let input = new Laya.TextInput(); this.addChild(input); input.width = 100; input.height = 50; input.on(Laya.Event.BLUR, this, e=>{ let str = input.text.split(''); for (let i = 0; i < str.length; i++) { let isNotNumber = true; for (let j = 0; j < 10; j+...

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

170. laya3.0中jszip使用异常 [ 65%]

...oad([{ url: zipUrl, type: Laya.Loader.BUFFER }], null, Laya.Handler.create(this, this.onLoadCfg, null, false)).then(             (value) => {                 JSZip.loadAsync(value).then(                     (zipData: JSZip) => {                         conso...

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