大约有 290 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0041 秒)
...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
...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
...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
...", 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
...er; class GameBootstrap{ public constructor(){ this.init(); } private init():void{ //初始化微信小游戏 Laya.MiniAdpter.init(true); //程序入口 Laya.init(600, 400,Laya.WebGL); ...
来源: Laya_社区 发布时间: 20180529
...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
...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
...,设置了相对坐标 然后在初始化ui时报错 debug发现是因为this._widget没有值, 和以前的版本对比,是因为this._widget和super()的位置对调了,导致在createChildren()时_widget还没有进行初始化 2.2.0beta2 以前的版本 附件 : --> LayoutTes...
来源: Laya_社区 发布时间: 20190808
...实现了,虽然笨了点,但还能用 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
...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