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

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

141. IDE提示类已存在,怎么办 [ 57%]

...面板不见了 TS项目使用matter.js库无智能提示 Ts 编辑提示error TS5023: Unknown option 'p' Laya mac版的IDE 是没测试就上线了吗? ide 2.4 layaair2-cmd 编译报错 点击代码编辑模器 就提示无法打开代码编辑器 请配置 这个怎么解决? [Laya2.0 3D] 2.0...

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

142. Android替换游戏启动logo看不到设置的图片 [ 57%]

...,等几秒返回音乐音效全无 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target 游戏运行在chrome里面 听不见声音 Texture图片能否进行翻转? 求高人分享使用protobuff框架的游戏demo(TS版本或AS版本的) 成...

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

143. 预制体模块 · LayaAir3文档 · LAYABOX [ 56%]

...Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } /** * 当报错时打印错误 * @param err 报错信息 */ onError(err: string): void { console.log("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): void { //...

来源: Laya3.0_文档 发布时间: 20241014

144. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...Scenes/Index.ls"); }); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } /** * 当报错时打印错误 * @param err 报错信息 */ onError(err: string): void { console.log("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): void { //...

来源: Laya3.0_文档 发布时间: 20251105

145. 今天打开微信工具出现错误Cannot read property 'USER_DATA_PATH' of undefined [ 56%]

...his class[MiniAdpter] already exist: {init: ƒ} WAGame.js:3 gameThirdScriptError Cannot read property 'USER_DATA_PATH' of undefined TypeError: Cannot read property 'USER_DATA_PATH' of undefined     at Function.MiniFileMgr.setNativeFileDir (http://127.0.0.1:37684/game/code.js:21639:46)     at Fun...

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

146. 调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 56%]

调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined 代码: var Test = (function(_surper){    function Test(){         Test.super(this);     };     Laya.class(Test, "Test", _surper);     return Test;      })(ui.TestUI);     报错Uncaught Typ...

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

147. 分享个资源加载的方法,类似白鹭的加载方式 [ 55%]

...= "onLoadedResJson"; // 资源配置文件加载出错 public static ONLOADERRORRESJSON: string = "onLoadError"; // 资源组加载完成 public static ONLOADGROUPCOMPLETE: string = "onLoadGroupConplete"; // 资源组加载出错 public static ONLOADGROUPERROR: string = "onLoadGroupError"; private s...

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

148. 引擎 TiledMap 居然不支持图块翻转 [ 55%]

...          if (tSrcNum < 0) {                 console.log("[error]path does not exist", this._pathArray, tImageArray, resPath, relativePath);             }             for (i = 0; i < tSrcNum; i++) {                 if (i == 0) {                     tR...

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

149. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 55%]

...Close); socket.on(Event.MESSAGE, this, onMessageReveived); socket.on(Event.ERROR, this, onConnectError); socket.connectByUrl(url); } public function Add(handler:IHandler):void { if(list.indexOf(handler) < 0){ list.push(handler); } } public function Remove(handler:IHandler):void { var index:int=li...

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

150. 1.7版本要初始化后有些代码才能用了 [ 54%]

...t"; var test = {}; test.text = new laya.display.Text(); // in this line is error , so you can't defined class before "Laya.init" Laya.init(800,600); //test.text = new laya.display.Text(); // in this line is right test.text.text = "dsafdsdsada"; test.text.color = "#ff0000"; Laya.stage.addChild(test.t...

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