大约有 13 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0029 秒)
萌新求问classUtils具体是做什么用的? 看到生成的空工程里有Laya.ClassUtils.regClass,一直没有搞明白这个类具体是做什么用的,如何使用。生成的示例工程有有bullet的注册,但是没有看到具体是在什么地方使用的。也没看看到相关...
来源: Laya_社区 发布时间: 20190101
...ain.ts)里增加类型注册,如 import {ui} from "./ui/layaMaxUI"; Laya.ClassUtils.regClass("ui.effectUI",ui.effectUI);但是感觉是生成的bug,这个应该自动生成在GameConfig里,求修复。。。现在太影响美术的协作效率了。 2018-12-13 1 1 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20181213
...port Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; export module ui.test { export class TestSceneUI extends Laya.Scene { public scoreLbl:Laya.Label; public tipLbll:Laya.Label; constructor(){ super()} createChildren():void {...
来源: Laya_社区 发布时间: 20190402
...base/BaseScene"; import BaseScene=base.BaseScene; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class CustomSceneUI extends BaseScene { public txt_hello:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("CustomScene"); } } RE...
来源: Laya_社区 发布时间: 20200827
... 2021-01-21 0 0 分享 微博 QZONE 微信 唐波 赞同来自: if (!Laya.ClassUtils.getClass('Laya.Text')) { Laya.ClassUtils.regClass('Laya.Text', Laya.Text); } 2021-04-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Fico 相关问题...
来源: Laya_社区 发布时间: 20201125
...EffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught ReferenceError: ui is not defined 之前有人提过这个问题...
来源: Laya_社区 发布时间: 20210111
...port Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; 2019-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 kylin 赞同来自: 1566554748用户 检查场景的导...
来源: Laya_社区 发布时间: 20190823
...接 提交 1 个回复 Monica - 知识达人 赞同来自: 可以先看下ClassUtils的API 2017-09-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 xfx7788 相关问题 请问在layaIDE里,怎么调用微信小程序API laya2的Scene...
来源: Laya_社区 发布时间: 20170917
...相关的链接 提交 1 个回复 不问苍生 赞同来自: Laya.ClassUtils.regClass("ui.mainUI.Fly_ObjUI",ui.mainUI.Fly_ObjUI); 在使用动效之前,调用,具体做什么的暂时不知道,UI找不到类的错误使用 2018-12-14 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 ...
来源: Laya_社区 发布时间: 20181214
...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