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

大约有 5,165 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0090 秒)

821. es6转es5后addComponent继承了Laya.Script3D的脚本后编译报错 [ 68%]

...带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined ...

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

822. 怎样获取浏览器地址传过来的GET参数 [ 68%]

...ow.document.location.href.toString()'); var u:* = url.split("?"); if (u[1] is String) { u = u[1].split("&"); var gets:Object = {}; for (var i:String in u) { var j:String = u[i].split("="); gets[j[0]] = j[1]; } return gets; } return { }; } //使用方法 var GET:Object = getGet(); trace('id: ',GE...

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

823. laya.utils.ClassUtils [ 68%]

...":"item1", "scale":[2,2] }, "child":[ { "type":"Text", "props":{ "text":"this is a test", "var":"label", "rumtime":"" } } ] } ClassUtils  getClass(className:String):*[static] 根据名字返回类对象。 ClassUtils  getInstance(className:String):*[static] 根据名称创建 Class 实例。 Cla...

来源: Laya2.0_api 发布时间: 20190513

824. 访问服务器上的H5,播放具有中文名的音乐时报错 [ 68%]

...带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined LayaNative ios上js访问不到JSBridge类中的方法,请求官方帮助, 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 3d项目-unity添加物理...

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

825. LayaIDE2.7.1 app构建之后使用 Android Studio 打包之后安装到手机运行报错 找不到 socketio 的 io 说未定义 [ 68%]

...手机运行报错 找不到 socketio 的 io 说未定义 但是我在 Visual Studio Code 编译运行调试是没问题的请问是怎么回事? 2020-10-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 lv 赞...

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

826. 1.9LayairIDE创建的微信小游戏示例运行报错 [ 68%]

...小游戏示例运行报错 VM32 WAGame.js:1 Uncaught ReferenceError: Laya is not defined     at code.js? [sm]:1     at require (VM32 WAGame.js:1)     at VM32 WAGame.js:1     at VM42 game.js:4     at require (VM32 WAGame.js:1)     at <anonymous>:1:1     at HTMLScriptElement.scrip...

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

827. 多个模块之间相互嵌套import,导致运行报错 [ 68%]

...public sex: number = 0; public Create(): void {} public Attack(): void { this.emit('attack'); } } Manager.ts public CreateCat(): void { let self = this; let cat = new Cat(); cat.Create(); cat.on('attack', function () { self.Change(); }); this.animals.push(cat); }   2019-02-26 0 2 分享 微博 QZON...

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

828. 发布WEB报错 unable to get property '_addReference' of undefined or null reference [ 68%]

...带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 2.2.0beta4 发布微信小游戏,安卓设备加载场景黑屏 runtime运行报错! laya2 发布微信...

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

829. 小游戏发布 本地包大小问题,code.js 太大了怎么处理呢? [ 68%]

...带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined 如何通过命令行工具构建和发布项目 matter中layasprite怎么改变图片大小? 2.2.0beta4 发布微信小游戏,安卓设备加载场景黑屏 1.7.15 小游戏3d 发布后在手机预览显...

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

830. Laya 3.0 在场景里拖动报move nan 拖动的物体不见了,只能在属性哪里改变xyz [ 68%]

...ror: unknown runtime '7bad1742-6eed-4d8d-81c0-501dc5bf03d6',TypeError: cls is not a constructor     [Game] Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '_is3D') 2023-03-16 0 1 分享 微博 QZONE 微信 蓝色de 赞同来自: 你运行Scene1这个没有报错,Sce...

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