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

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

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

...ct';  class GameConfig { constructor() { } static init() { var reg = Laya.ClassUtils.regClass; } } GameConfig.width = 640; GameConfig.height = 1136; GameConfig.scaleMode = "fixedwidth"; GameConfig.screenMode = "none"; GameConfig.alignV = "top"; GameConfig.alignH = "left"; GameConfig.startScene = ""...

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

52. layaMaxUI.ts的自动生成代码bug [ 49%]

...import View=Laya.View; import Dialog=Laya.Dialog; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class MainSceneUI extends Laya.SceneBase { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("MainScene"); } } REG("ui.MainSceneUI",MainScene...

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

53. 我用的是ts,我有一个总项目,但项目里面有很多其它的分项目(不是模块,是单独的一个laya项目),我总项目调用分项目的话,能直接调用它的js(分项目的启动文件)吗 [ 47%]

...把分项目里面的其他js都预加载 Moeb • 2017-11-06 19:59 Laya.ClassUtils.regClass('className',classDef),这第二个参数是类的全名(包括包含它的包),那如果我是加载另一个项目的js里面的类呢,这路径没法写呀

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

54. LayaAir 2.0 TS版编译出错GameConfig跟创建项目时生成的内容不一致了 [ 47%]

...Json:boolean=true; constructor(){} static init(){ var reg: Function = Laya.ClassUtils.regClass; reg("script/GameUI.ts",GameUI); reg("script/GameControl.ts",GameControl); reg("script/Bullet.ts",Bullet); reg("script/DropBox.ts",DropBox); } } GameConfig.init();编译之后变成:/* * 游戏初始化...

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

55. layaAir2.0动效模板报错Uncaught Can not find class ui.aniTemplates.bigToSmallUI [ 46%]

... • 2019-03-07 18:22 请问怎么手动注册?看到有人说调用Laya.ClassUtils.regClass("ui.effectUI",ui.effectUI); 但是layaMaxUI.ts下面也没有生成这个类

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

56. 2.0 Beta3版本中,runtime脚本的的问题 [ 46%]

...son:boolean=false; constructor(){} static init(){ var reg: Function = Laya.ClassUtils.regClass; reg("game/ImageRunTime.ts",ImageRunTime); } } GameConfig.init(); 2018-10-15 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: https://ldc2.layabox.com/doc/?nav=zh-as-2-4-1  照着文档,很快就...

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

57. 2.2.0 Html使用img标签解析错误 [ 46%]

...遇到过,是Laya命名冲突了,2.3解决 或者你执行下: Laya.ClassUtils.regClass('img', Laya.HTMLImageElement); 2019-10-29 0 7 分享 微博 QZONE 微信 133*****831 赞同来自: 还有一个好方法2.3.0beta版本html.js库文件已修复的问题,把2.3.0beta的html.js库文件替...

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

58. Maximum call stack size exceeded [ 44%]

...     //注册Script或者Runtime引用             let reg = Laya.ClassUtils.regClass;     reg("script/GameMain.js",GameMain);         }     }     GameConfig.width = 640;     GameConfig.height = 1136;     GameConfig.scaleMode ="fixedwidth";     GameConfig.screenMode = "none";...

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