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

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

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. laya.utils.ClassUtils_API3.0 [ 91%]

...个类工具类。 Hierarchy ClassUtils Index Properties _classMap Methods getClass getInstance regClass Properties Static _classMap _classMap: Record<string, any> Defined in laya/utils/ClassUtils.ts:5 Methods Static getClass getClass(className: string): any Defined in laya/utils/ClassUtils.ts...

来源: Laya3.0_api 发布时间: 20231115

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

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

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

4. 如何通过一个类名获取一个类的对象 [ 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

5. laya.utils.ClassUtils [ 82%]

..."text":"this is a test", "var":"label", "rumtime":"" } } ] } ClassUtils  getClass(className:String):*[static] 根据名字返回类对象。 ClassUtils  getInstance(className:String):*[static] 根据名称创建 Class 实例。 ClassUtils  getRegClass(className:String):*[static] 返回注册...

来源: Laya2.0_api 发布时间: 20190513

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

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

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

7. laya.utils.ClassUtils [ 72%]

...Properties PropertyDefined By  _classMap : Object[static] ClassUtils  getClass : Function[static] 根据名字返回类对象。 ClassUtilsPublic Methods  MethodDefined By  addGraphicsToSprite(graphicO:Object, sprite:Sprite):void[static] 将graphic对象添加到Sprite上 ClassUtils  addGr...

来源: laya_api 发布时间: 20170929

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

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

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

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

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