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

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

871. Laya.Pool.getItemByClass 闪退 [ 68%]

Laya.Pool.getItemByClass 闪退 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.reusableF...

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

872. Laya打包微信小游戏的时候,引入的外部js访问不到 [ 68%]

...math.self.js'></script> 打包之后,发生的bug如下: math is not defined ReferenceError: math is not defined     at http://127.0.0.1:19768/game/code.js:60:1     at require (http://127.0.0.1:19768/game/__ ... :78871)     at http://127.0.0.1:19768/game/__ ... 78480     at http...

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

873. 调试正常但发布后,index.html在浏览器打开出现跨源受限的问题 [ 68%]

...g by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access. laya.core.min.js:6 [warn]Retry to load: E:/laya/layatest/release/layaweb/1.0.0/res/img/image.png index.html:1 Image from origin 'file://' has been blocked from loading by Cross-Origin Resource...

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

874. [LayaAirIDE3][3.1.0 B2]MouseEnabled选项更改后,缺少提示 [ 68%]

...果去掉这个提示 layaair-cmd 编译提示 ReferenceError: primordials is not defined 微信小程序 发布后缺少app.json文件 点击代码编辑模器 就提示无法打开代码编辑器 请配置 这个怎么解决? JS 是没有自动补全提示吗 路径是对的,但老是,调试...

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

875. layaair2.2 ide版本新建的空项目,开启调试模式后报错了 [ 68%]

...新建的空项目,开启调试模式后报错了 ReferenceError: laya is not defined preload.js:55 at file:///E:/h5/project/szfy2.2/bin/libs/laya.debugtool.js:5:14   at file:///E:/h5/project/szfy2.2/bin/libs/laya.debugtool.js:9815:3   ReferenceError: laya is not defined laya.debugtool.js:5 at f...

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

876. Error: 代码包大小为 6018 kb,上限为 4096 kb,请删除文件后重试 [ 67%]

...直接报错: VM125:1 gameThirdScriptError module "libs/laya.wxmini.js" is not defined Error: module "libs/laya.wxmini.js" is not defined     at require (http://127.0.0.1:43425/game/__ ... :13569)     at http://127.0.0.1:43425/game/__ ... 13424     at http://127.0.0.1:43425/game/game.js:6...

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

877. LayaAir 2.0版本开放数据域使用获取canvas方法绘制报错 [ 67%]

...s绘制texture,t.addReference报错,改了laya.core.js之后又报了this.bitmap._getSource() is not a function,改了getsource之后不报错了,但是开放域的东西都没绘制出来,game.json里面设置了开放域的,并且使用laya微信开放域组件能够正常显示,使用2....

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

878. 按文档示例写“Hello Layabox”一直报错是什么原因呢? [ 67%]

...带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined matter.js的文档查看 laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 关於文...

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

879. [LayaAir3]资源加载失败不会重试的异常 [ 67%]

...测试例子,然后关闭编辑器,必然触发 index.js:59 WebSocket is already in CLOSING or CLOSED state   这种情况下,本资源不再重试并且卡住(加载回调未执行),目前在编辑器共享给其他人,对方如果是wifi,信号容易抖动,或者对方网络抖...

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

880. layaair2-cmd mac安装报错env: node\r: No such file or directory [ 67%]

...带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined ide 2.4 layaair2-cmd 编译报错 laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in ...

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