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

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

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

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

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

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

13. AS的protobuf [ 58%]

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

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

14. [LayaAir3]AnimatorState上添加的脚本,打包后会加载不到 [ 57%]

...加载不到 打包出来的资源格式会变成res://../xxxxxx,造成getClass的时候找不到对应的类。   顺便吐槽一下Animator2D现在没有getControllerLayer函数,不能像Animator一样通过getControllerLayer获取AnimatorState,通过代码实时添加脚本。用起来不...

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

15. Uncaught Can not find class Laya.Text [ 56%]

...1 0 0 分享 微博 QZONE 微信 唐波 赞同来自: if (!Laya.ClassUtils.getClass('Laya.Text')) { Laya.ClassUtils.regClass('Laya.Text', Laya.Text); } 2021-04-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Fico 相关问题 laya2.0...

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

16. [LayaAir3]脚本集怎么用? [ 55%]

...classMap) { console.log(` ${key}:`); }  const GCtrClass = Laya.ClassUtils.getClass("GCtr"); if (!GCtrClass) { console.error("未找到 GCtr 类"); return; }  // 3. 直接添加到当前脚本的owner节点上 // this.owner 就是Main脚本挂载的节点 const gCtrInstance = this.owner.addComponen...

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