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

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

371. layacmd atlas报错 [ 56%]

layacmd atlas报错     root@6c4616fdebd4:/# node -v v6.11.2 root@6c4616fdebd4:/# npm -v 3.10.10    root@6c4616fdebd4:/# layacmd atlas internal/child_process.js:319 throw errnoException(err, 'spawn'); ^ Error: spawn EACCES at exports._errnoException (util.js:1020:11) at ChildProcess.spawn (inte...

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

372. [Error] TypeError: null is not an object (evaluating 'this._style._tf') [ 56%]

[Error] TypeError: null is not an object (evaluating 'this._style._tf') 请问这个怎么解决? Safari , Chrome 同样有这个问题 [Error] TypeError: null is not an object (evaluating 'this._style._tf') (anonymous function) (laya.core.js:16463) toParentPoint (laya.core.js:15797) localToGlo...

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

373. Texture.getPixels在手机真机Native环境中会报错 [ 56%]

Texture.getPixels在手机真机Native环境中会报错 将游戏打包成APK后在真机或者手机模拟器中运行时,对纹理使用getPixels会引发报错!因为是必现所以没有提供DEMO了   getPixels(x, y, width, height) {             if (window.conch) {  ...

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

374. LayaNative 0.9.6启动时报错 [ 56%]

LayaNative 0.9.6启动时报错 Rejecting re-init on previously-failed class java.lang.Class<vp>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/SafeBrowsingResponse; 2019-07-22 18:03:33.840 27966-27966/com.lovegame.hk.hokbok I/art:     at void com.android.webview.ch...

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

375. 使用mask后,只要调用 Laya.Resource.destroyUnusedResources() 就会引起报错 [ 56%]

使用mask后,只要调用 Laya.Resource.destroyUnusedResources() 就会引起报错 重现demo如下: Laya.init(600, 400, WebGL); let bgSprite = new Laya.Sprite(); bgSprite.graphics.drawRect(0, 0, 200, 200, "#0xFFFF00"); bgSprite.pos(300, 300); Laya.stage.addChild(bgSprite); let mask = new Lay...

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

376. 导微信小程序报错window.focus is not a function [ 56%]

导微信小程序报错window.focus is not a function import Browser = Laya.Browser 发布微信小程序 gameThirdScriptError window.focus is not a function TypeError: window.focus is not a function 2018-05-11 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

377. 在Laya中使用Matter.js的最简示例 (JS) [ 56%]

在Laya中使用Matter.js的最简示例 (JS) Laya默认使用matter.js作为物理引擎,但示例还是有些复杂;所以,添加这个帖子,作为Matter.js的get start的Laya版本 在Laya中使用Matter需要在index.html的“<!--jsfile--startTag-->”标签前面添加下面的...

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

378. 报错,这不是个构造函数 "StartPage is not a constructor" [ 56%]

报错,这不是个构造函数 "StartPage is not a constructor" StartPage: /**Created by the LayaAirIDE*/ var StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var La...

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

379. 忽然之间LayaAir使用不了了,报错Uncaught TypeError: Laya.Main is not a function [ 56%]

忽然之间LayaAir使用不了了,报错Uncaught TypeError: Laya.Main is not a function 一直在用LayaAir都很正常,忽然之间运行LayaAir页面就报错. 新建一个空白的LayaAir项目,然后写好代码.在Google Chrome中的控制台老是报错:Uncaught TypeError: Laya.Main is not a...

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

380. [LayaAir3]Laya.loader.loadPackage加载分包,如果判断成功与失败 [ 56%]

[LayaAir3]Laya.loader.loadPackage加载分包,如果判断成功与失败 测试代码,无论sub111是否存在,都会打印“pack sub1 loaded”,请问如何判断是否加载分包成功或失败? Laya.loader.loadPackage("sub1111").then(() => {                 console.log('p...

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