大约有 15 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0016 秒)
... 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
...{isSuccess}`) console.log("所有已注册类:"); const classMap = (Laya.ClassUtils as any)._classMap; for (const key in classMap) { console.log(` ${key}:`); } const GCtrClass = Laya.ClassUtils.getClass("GCtr"); if (!GCtrClass) { console.error("未找到 GCtr 类"); return; } // 3. 直接添...
来源: Laya_社区 发布时间: 20251230
...ght TypeError: Class constructor Component cannot be invoked without 'new' ClassUtils.getClass获取不到Class Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent 问题状态 最新活动: 2018-10-07 18:09 浏览: 996 关注: 2 人
来源: Laya_社区 发布时间: 20180925
...t: Object {init: } class导出问题 Uncaught Can not find class Laya.Text ClassUtils.getClass获取不到Class 脚本重命名后报Uncaught Can not find class 错误 Uncaught Can not find class laya.ani.bone.Skeleton Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent Uncaug...
来源: Laya_社区 发布时间: 20170406
...19 20:49 顺便问下,支持根据类名字创建类对象吗。我用了ClassUtils.getClass拿不到对应的类,类名,带包的全称都试了 Laya_Aaron • 2018-03-20 10:14 这个是返回类,你要创建类应该用getinstance jy02728471 • 2018-03-20 13:50 @Laya_Aaron:这个也试过...
来源: Laya_社区 发布时间: 20180319