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

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

11. Laya2.2问题,有没有遇到的? [ 56%]

...ya2.2问题,有没有遇到的? 子域所有代码 (function () { 'use strict';  class GameConfig { constructor() { } static init() { var reg = Laya.ClassUtils.regClass; } } GameConfig.width = 640; GameConfig.height = 1136; GameConfig.scaleMode = "fixedwidth"; GameConfig.screenMode = "none"; Ga...

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

12. rev-path的nodejs库被修改了,导致版本管理失效 [ 53%]

...0-09-01 09:23 官方链接 - https://github.com/sindresorhu ... ex.js 'use strict'; const modifyFilename = require('modify-filename'); module.exports = (pth, hash) => { if (!(pth && hash)) { throw new Error('`path` and `hash` required'); } return modifyFilename(pth, (filename, ext) => ...

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

13. oppo分包加载失败 [ 51%]

...:47 好像不行,分包内的game.js 和main.js里面有一行 "use strict";console.log("subRes loaded;");这个就行了,我这边是这样 1597917359用户 • 2021-01-20 14:47 我这个 里面有main。js 是为什么呢 1597917359用户 • 2021-01-23 16:44 您好 是需...

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

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

...bgl.js"></script> </body> </html> <script> "use strict"; 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.te...

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

15. LAYAIDE运行VSCODE插件失败问题(VSCODE正常) [ 50%]

...dTemplate", "title": "build template" } ] },extension.js 内容如下 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const vscode = require("vscode"); function activate(context) { let disposable = vscode.commands.registerCommand('extension.buildTemplate', () => { vsc...

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

16. Maximum call stack size exceeded [ 48%]

...始就出这错误了   以下附上代码 : (function () {     'use strict';       class GameMain extends Laya.Scene {         constructor(){             super();               GameMain.instance = this;               Laya.MouseManager.multiTouchEnabled = false;     ...

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

17. LayaAirIDE 2.0 laya.wxmini.js 第3行报错! 创建3D项目(TypeScript),导出微信小游戏,选择了JS混淆,崩溃在 laya.wxmini.js 第3行,错误如下 [ 44%]

...e("libs/laya.wxmini.js", function(require, module, exports, process){ "use strict"; window = window || global, window.layalib || (window.layalib = function (i, e) {   (window._layalibs || (window._layalibs = )).push({ f: i, i: e }); }), window.layalib(function (i, e, t) {   console 窗口报错如...

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

18. laya的ide如何import js并调用里面的类和方法?VS Code正常。 [ 37%]

...: Mismatched anonymous define() module: function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const t = require("./test/TestExportClass"); // 程序入口 class GameMain { constructor() { // Laya.init(600,400); console.log("start"); var exportCls ...

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

19. 2D物理-碰撞过滤器 [ 35%]

...更高效。window.Laya=window.Laya||{}; (function (exports, Laya) { 'use strict'; class Physics_Physics_CollisionFiltering { constructor() { this.preMovementX = 0; this.preMovementY = 0; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); ...

来源: Laya2.0_示例 发布时间: 20240930

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

...----------------------------------- (function (exports, Laya) {     'use strict';     const TiledMapFlipConst = 1073741824;     const TiledMapFlipConstHalf = TiledMapFlipConst / 2;     class GridSprite extends Laya.Sprite {         constructor() {             super(...arguments); ...

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