大约有 57 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0029 秒)
...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
...把分项目里面的其他js都预加载 Moeb • 2017-11-06 19:59 Laya.ClassUtils.regClass('className',classDef),这第二个参数是类的全名(包括包含它的包),那如果我是加载另一个项目的js里面的类呢,这路径没法写呀
来源: Laya_社区 发布时间: 20171106
...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
... • 2019-03-07 18:22 请问怎么手动注册?看到有人说调用Laya.ClassUtils.regClass("ui.effectUI",ui.effectUI); 但是layaMaxUI.ts下面也没有生成这个类
来源: Laya_社区 发布时间: 20181011
...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
...遇到过,是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
... //注册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