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

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

11. Uncaught Can not find class Laya.Text [ 65%]

... 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

12. [LayaAir3]脚本集怎么用? [ 63%]

...{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

13. Warning!,this class[MiniAdpter] already exist: Object {} [ 61%]

...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

14. must set Document Class 是怎么回事? [ 58%]

...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

15. AS的protobuf [ 58%]

...19 20:49 顺便问下,支持根据类名字创建类对象吗。我用了ClassUtils.getClass拿不到对应的类,类名,带包的全称都试了 Laya_Aaron • 2018-03-20 10:14 这个是返回类,你要创建类应该用getinstance jy02728471 • 2018-03-20 13:50 @Laya_Aaron:这个也试过...

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