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

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

61. socket无法连接服务器 [ 89%]

...    this.state_ = EConnectionState.eConnected;             console.log("conect to 127.0.0.1");         }         protected _onMessage(msg: any): void {             super._onMessage(msg);             console.log("receve msg : ");             console.log(msg);     ...

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

62. 如何在游戏入口处获取对象的子对象 [ 89%]

...ction(){ this.pass = this.map.getLayerByIndex(0);//获取通行层 console.log(this.pass); } _proto.getLayer = function() { this.floor = this.map.getLayerByIndex(0);//获取通行层 console.log(this.pass); } console.log(this.map) return loadMap; })(Sprite);**游戏主入口** var Main = (function (...

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

63. 加载-错误处理和进度 [ 88%]

...onError); })(); function onAssetLoaded(texture) { // 使用texture console.log("加载结束"); } // 加载进度侦听器 function onLoading(progress) { console.log("加载进度: " + progress); } function onError(err) { console.log("加载失败: " + err); } })();module laya { import Event = Laya....

来源: Laya_示例 发布时间: 20260303

64. 离线打包js打印问题 [ 88%]

...包js打印问题 你好,我用android studio 离线打包,为什么在logcat里打印不出js的console.log()内容?是不是需要哪里配置或导入插件? 2018-09-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

65. 导出素材,不拷贝未打包资源 [ 88%]

...\Roaming\npm\node_modules\layacmd\node_modules\@types' npm ERR! A complete log of this run can be found in: npm ERR!     C:\Users\itadmin3\AppData\Roaming\npm-cache\_logs\2017-10-27T02_56_ 14_026Z-debug.log 2017-10-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

66. [LayaAir3]打包harmonyos next后,运行报错 [ 88%]

...                                    E     [ArkRuntime Log] TypeError: Cannot read property getContext of undefined 10-31 09:07:08.249   20856-2248    C03f00/ArkCompiler                                    E     [ArkRuntime Log]     at func_main_0 (entr...

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

67. Laya.Pool.getItemByClass 闪退 [ 88%]

... var fish:CFFish = Laya.Pool.getItemByClass(type,CFFish) as CFFish console.log(fish) fish.visible = true fish.init(type) 调用init方法时候闪退,错误信息是 "fish.init is not a function" "TypeError: fish.init is not a function at Function.CFSprite.reusableFishWithType (file:///Users/heboy...

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

68. 组件脚本的内置方法 · LayaAir3.4 · 引擎文档 · LAYABOX [ 88%]

...的是即使节点未激活onAdded也会调用 onAdded(): void { console.log("Game onAdded"); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { console.log("Game onAwake"); } //组件被启用后执行,比如节点被添加到...

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

69. getimagedata直接调用无法获取有效像素问题 [ 88%]

...;             x = t.getPixels(0,0,400,400)             console.log(x)             for (let i of x) {                 if (i > 0) {                     console.log(i)                 }             }             console.log(' ----- 到这里为...

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

70. 游戏在后台放置一段时间(大约一两个小时后)会黑屏,然后要等好长的一段时间才响应过来,我看log此时JS逻辑都没跑了。 苹果虽然不会黑屏,但画面会不动,失去响应,过一段时间JS逻辑才跑起来。 [ 88%]

...后)会黑屏,然后要等好长的一段时间才响应过来,我看log此时JS逻辑都没跑了。 苹果虽然不会黑屏,但画面会不动,失去响应,过一段时间JS逻辑才跑起来。 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 13.0px 'Helvetica Neue';...

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