大约有 11 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0039 秒)
Uncaught TypeError: Cannot read property 'regClass' of undefined 1.使用2.12.0版本创建typescript的2D示例项目 2.运行,可以正常运行 3.按F9,默认编程语言是没有任何选择的,然后切换编程语言,选择TypeScript,点击确定 4.运行,出现错误Uncaught Type...
来源: Laya_社区 发布时间: 20210901
@regClass编译报错! 去掉CtrBase里的@regClass 就不报错! 再或者CtrBase 不引用funzzzzz 或者 funzzzzz不引用MachineCtrl 也不会报错。已经是最精简的就三个类,每个一行代码。上网查 升级了webpack也没用。 写了构造函数也没用 bundle编译...
来源: Laya_社区 发布时间: 20230608
...同来自: if (!Laya.ClassUtils.getClass('Laya.Text')) { Laya.ClassUtils.regClass('Laya.Text', Laya.Text); } 2021-04-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Fico 相关问题 laya2.0加载3d场景报错Uncaught TypeError: Canno...
来源: Laya_社区 发布时间: 20201125
...F11编译layaMaxUI.ts REG is undefined var REG: Function = Laya.ClassUtils.regClass; 这行代码f11不会加上, f12可以 2019-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 bpmf_d 赞同来自: 感谢您...
来源: Laya_社区 发布时间: 20190411
...=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; 2019-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 kylin 赞同来自: 1566554748用户 检查场景的导出模式是...
来源: Laya_社区 发布时间: 20190823
[LayaAir3]Laya命令行发布无法修改配置 @IEditorEnv.regClass() class BuildScript { // 构建web static async buildWeb() { return IEditorEnv.BuildTask.start("web").waitForCompletion(); } static async buildInner() { let innerBuild:any = IE...
来源: Laya_社区 发布时间: 20251015
...册Script或者Runtime引用 let reg = Laya.ClassUtils.regClass; reg("script/GameMain.js",GameMain); } } GameConfig.width = 640; GameConfig.height = 1136; GameConfig.scaleMode ="fixedwidth"; GameConfig.screenMode = "none"; GameC...
来源: Laya_社区 发布时间: 20201110
...容器位置 Laya.timer.frameLoop(1,this,this.onLoop); } //注册类 Laya.regClass(BackGround,"BackGround",_super); var _proto = BackGround.prototype; _proto.onLoop = function(){ //背景容器每帧向下移动一像素 this.y +=1; //如果背景图到了下面不可见的位置,立即调整位...
来源: Laya_社区 发布时间: 20191018
... var compClass=runtime ? (View.viewClassMap[runtime] || ClassUtils.getRegClass(runtime)):View.uiClassMap[json.type]; return compClass ? new compClass():null; } View.regComponent=function(key,compClass){ View.viewClassMap[key]=...
来源: Laya_社区 发布时间: 20160913
...3-07 18:22 请问怎么手动注册?看到有人说调用Laya.ClassUtils.regClass("ui.effectUI",ui.effectUI); 但是layaMaxUI.ts下面也没有生成这个类
来源: Laya_社区 发布时间: 20181011