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

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

391. 微信小游戏编译出错 [ 45%]

...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

392. 截屏函数异常E/LayaBox:className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen [ 44%]

...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

393. TypeScript在LayaAir 1.X和2.X中对待module和namespace的异同,求2.x使用自定义namespace的方法(module已经找到方法) [ 44%]

...了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

394. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 44%]

...]); }; 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

395. 请引擎开发人员不要在用这种写法了 [ 44%]

...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

396. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...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

397. 预制体模块 · LayaAir3文档 · LAYABOX [ 43%]

...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

398. 微信小游戏分包实战(TypeScript-小游戏适配文档-微信小游戏) [ 43%]

...,我们只保留通用的UI显示方法showUI,图集加载后的回调onLoaded里,我们保留初次显示UI的逻辑。将按钮监听,以及页面切换等逻辑放到b.ts里。 分出的b.ts代码如下所示: ```javascript /** * 分包 */ module subpackage{ export class b{ private Game...

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

399. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...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

400. 3d导入粒子效果报错 [ 42%]

...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