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

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

1. ClassUtils.getClass获取不到Class [ 100%]

ClassUtils.getClass获取不到Class as语言,2.9版本ClassUtils.getClass(datasets.container.Q_ani_controlContainer)获取不到对应类 附件 : --> 2020-12-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 ...

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

2. TypeScript项目,src目录下有个ClicpView.ts类继承自ui.ClipUI,请问如何通过ClassUtils在知道类名的情况下得到这个类对象呢 [ 87%]

...类名的情况下得到这个类对象呢 var UIClass:any=Laya.ClassUtils.getClass("ClipView"); 这么写好像获取不到 2017-08-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 如...

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

3. 如何通过一个类名获取一个类的对象 [ 86%]

...享 微博 QZONE 微信 132*****180 赞同来自: var cls:* = ClassUtils.getClass("TestView"); Laya.stage.addChild(cls); 我这个说cls是空 2017-08-14 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 在使用getClass之前,需要先对此类进行注册,regClass()! 2017-08-28 0 0 ...

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

4. 有没有通过名称获取对象的方法,类似于as的getchildbyname [ 77%]

...5:42 请问如何使用呢?试了多种方式都报错。Laya.ClassUtils.getClass(),是getClass方法吗?然后参数如何传递呢?

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

5. ClassUtils [ 63%]

...udi199553 赞同来自: ClassUtils.regClass("sp",Sprite); trace(ClassUtils.getClass("sp"));   2017-11-07 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Moeb 问题状态 最新活动: 2017-11-07 10:35 浏览: 688 关注: 3 人 Moeb • ...

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

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

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

7. Laya.ClassUtils类的使用 [ 60%]

...Class("TimerHandler", TimerHandler);使用var classZ:any = Laya.ClassUtils.getClass(refKey); 然后无法obj = new classZ();那么这个玩意到底怎么用 2018-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...

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

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

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

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

9. ClassUtils 谁能告诉我下这个怎么用呀? [ 58%]

...理解不是laya里面的所有类都是可以通过laya.utils.ClassUtils.getClass (className)来获取到这个类?egret里面有类似这样的方法,你们的是这个么

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

10. AS的protobuf [ 58%]

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

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