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

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

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

...的链接 提交 4 个回复 cuixueying 赞同来自: 建议你可以看下ClassUtils类的API! 2017-08-14 0 0 分享 微博 QZONE 微信 132*****180 赞同来自: var cls:* = ClassUtils.getClass("TestView"); Laya.stage.addChild(cls); 我这个说cls是空 2017-08-14 0 0 分享 微博 QZONE 微...

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

22. 2.2.0beta3版本的UI库中,WXOpenDataViewer没有注册 [ 73%]

...上代码:     Laya.ILaya.regClass(WXOpenDataViewer);     Laya.ClassUtils.regClass("laya.ui.WXOpenDataViewer", WXOpenDataViewer);     Laya.ClassUtils.regClass("Laya.WXOpenDataViewer", WXOpenDataViewer); 2019-08-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

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

...容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 在引擎里用ClassUtils这个类就可以 2017-08-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zhouyilb 相关问题 两个对象new了一个相同的对象,调用第...

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

24. Uncaught TypeError: Game.super is not a function [ 72%]

...n var Game = (function(_super){ function Game() { Game.super(this); } Laya.ClassUtils(Game,"Game",_super) return Game; })(ui.GameUI) 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 ...

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

25. TiledMap.moveViewPort(x,y) 为嘛要传入负数 [ 71%]

...会报错 大佬们请问下图片不支持scaleX为负数吗,报错 Laya.ClassUtils.getInstance这个传入类名创建出来的实例还是null ios内购接入 - IMarket版本去了,求oc部分调用,和js部分的传入。 tiledmap 创建的时候是不是不能直接传入一个json对象 ...

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

26. Uncaught Can not find class Laya.Text [ 71%]

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

27. [LayaAir3]脚本集怎么用? [ 69%]

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

28. LayaAir2.2.0bate1 最新版加载unity 3d刚体模型出错 [ 69%]

... 导致代码找不到。 于是添加代码在文件42292行添加 Laya.ClassUtils.regClass("Rigidbody3D", Rigidbody3D); // add by ning at 2019-07-31 16:40    问题解决 附件 : --> 2019-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

29. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 65%]

...port Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; export module ui.test { export class TestSceneUI extends Laya.Scene {         public scoreLbl:Laya.Label;         public tipLbll:Laya.Label; constructor(){ super()} createChildren():void {...

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

30. 问个和引擎编辑器无关的问题,问问怎么通过一个类名(字符串)创建一个对象啊!!!!感谢真不想在找typescript了扒嗒了半天,反射竟然没有看懂,感谢了!!! [ 65%]

.../layaair.ldc.layabox.com/api/index.html?category=Core&class=laya.utils.ClassUtils 你看是不是这个 2018-01-22 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 liwenhua 相关问题 看了其他引擎才发现 LAYA 真的太太太...

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