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

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

211. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 64%]

...omp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught ReferenceError: ui is not defined ...

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

212. 微信小游戏加载资源问题 [ 64%]

...= (new Laya.SoundManager._soundClass()); sound.load(sourceUrl); thisLoader.onLoaded(sound); } else { thisLoader.event(Laya.Event.ERROR, "Load sound failed"); } } static bindToThis(fun, scope) { var rst = fun; rst = fun.bind(scope); return rst; } _loadHttpRequestWhat(url, contentType) { var...

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

213. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 64%]

...ader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ console.log("点击事件") }) // console.l...

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

214. Uncaught TypeError: Cannot read property 'props' of undefined [ 64%]

...  at Loader.__proto.complete (laya.core.js:14555)     at Loader.__proto.onLoaded (laya.core.js:14523)     at EventHandler.__proto.runWith (laya.core.js:1155)     at HttpRequest.__proto.event (laya.core.js:911)     at HttpRequest.__proto.complete (laya.core.js:14196)     at HttpRequest.__p...

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

215. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 64%]

...("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除...

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

216. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 64%]

...l";     Laya.loader.load("data/Questv1_Regular.ttf", Handler.create(this,onLoaded), null, Loader.BUFFER); }   private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("data/Questv1_Regular.ttf");   if(arr && Browser.window.conch) { Browser.window.conch.setFontFaceFromBuf...

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

217. 发现TimeLine的一些问题,像是BUG [ 64%]

...d([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 Laya.stage.bgColor="#353535"; sp1=createSprite(50,50);//创建方块1 sp2=createSprite(250,50);//创建方块2 sp3=createSprite(450,50);//创建方块3 addTime...

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

218. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 63%]

...at Function.Texture._create (laya.core.js:15946)     at Texture.__proto._onLoaded (laya.core.js:15750)     at EventHandler.__proto.runWith (laya.core.js:1410)     at ResInfo.__proto.event (laya.core.js:1166)     at LoaderManager.__proto._endLoad (laya.core.js:14880)     at Loader.onLoaded ...

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

219. laya.net.Loader [ 63%]

...rl(url:String):String 获取指定资源地址的数据类型。 Loader  onLoaded(data:* = null):void 资源加载完成的处理函数。 LoaderEvents Event Summary Defined By  complete加载完成后调度。Loader  error加载出错时调度。Loader  progress加载进度发生改变时...

来源: laya_api 发布时间: 20170929

220. 3D角色动作播放时长不正确 [ 63%]

...inistrator/documents/myLaya/bin/libs/laya.d3.js:18559:18)     at ResInfo.onLoaded (file:///D:/Users/administrator/documents/myLaya/bin/libs/laya.core.js:11854:33)     at EventHandler.__proto.runWith (file:///D:/Users/administrator/documents/myLaya/bin/libs/laya.core.js:675:28)     at ResInfo._...

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