大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0123 秒)
...Message({url:url,data:tempData,isLoad:"filedata"}); } thisLoader.onLoaded(tempData); }else if (errorCode==1){ MiniAdpter.EnvConfig.load.call(thisLoader,url,type,cache,group,ignoreCache); } } .atlas 这类的文件被过滤?~~这适配文档没讲这些~ Laya_Aaron • 2018-06-11 15:07 ...
来源: Laya_社区 发布时间: 20180608
...dow.globalImage = window.document.createElement("img"); window.globalImage.onload=function() { ...使用image对象 } window.globalImage.src = "file:///" + conch.getCachePath()+"/test.png"; */ // window.image = window.document.createElement("img"); image.putImageData(arrayBuff,width,height); //......
来源: Laya_社区 发布时间: 20180227
...了VSCode的Auto Import的功能实现的) import BM from './b'; window.onload = ()=>{ console.log(AM.AC.myname); console.log(BM.BC.myname); console.log(Laya.Browser.clientWidth); } 实际测试能完美运行。 我就一个小疑问,如果我想用namepsace而非module声明AM, BM,我就...
来源: Laya_社区 发布时间: 20181026
...]); }; var fileReader:Object = new Browser.window.FileReader(); fileReader.onload = function(evt):void { if(Browser.window.FileReader.DONE==fileReader.readyState) { var sp:Sprite = new Sprite(); sp.loadImage(fileReader.result,0,0,300,300); Laya.stage.addChild(sp); } } } } } ``` 编译上面的...
来源: Laya2.0_文档 发布时间: 20210715
...aya.core.js:1039) at LoaderManager._endLoad (laya.core.js:19366) at Loader.onLoaded (laya.core.js:19335) at EventHandler.runWith (laya.core.js:998) at Loader.event (laya.core.js:1039) at Loader.endLoad (laya.core.js:18943) at Function.checkNext (laya.core.js:18926) at Loader.complete (laya.core.js:1...
来源: Laya_社区 发布时间: 20200909
...le.files.length){ fileReader.readAsDataURL(file.files[0]); } }; fileReader.onload = function(evt):void { if(Laya.Browser.window.FileReader.DONE == fileReader.readyState) { var sp:Laya.Sprite = new Laya.Sprite(); sp.loadImage(fileReader.result,0,0,300,300); Laya.stage.addChild(sp); } } } } new Main; ...
来源: Laya3.0_文档 发布时间: 20251010
...2D,3D资源 Laya.loader.load(resArr, null, Laya.Handler.create(this, this.onLoading, null, false)).then(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); //预加载的东西太少,为了本地看效果延迟一秒,真实...
来源: Laya3.0_文档 发布时间: 20241014
...,我们只保留通用的UI显示方法showUI,图集加载后的回调onLoaded里,我们保留初次显示UI的逻辑。将按钮监听,以及页面切换等逻辑放到b.ts里。 分出的b.ts代码如下所示: ```javascript /** * 分包 */ module subpackage{ export class b{ private Game...
来源: Laya2.0_文档 发布时间: 20210715
...2D,3D资源 Laya.loader.load(resArr, null, Laya.Handler.create(this, this.onLoading, null, false)).then(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); //预加载的东西太少,为了本地看效果延迟一秒,真实...
来源: Laya3.0_文档 发布时间: 20251105
...sers/borui/Desktop/Cube3D/bin/libs/laya.core.js:12865:9) at Loader.__proto.onLoaded (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:12854:9) at EventHandler.__proto.runWith (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:716:59) at HttpRequest.__proto.event (file:///C:/User...
来源: Laya_社区 发布时间: 20180328