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

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

11. 反射实例中的属性 [ 76%]

反射实例中的属性 根据API中Laya.ClassUtils.类中的方法,我先注册了,在创建了实例!但我如何获取实例中对象的属性 // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.ClassUtils.regClass("sp", Reflect); Laya.ClassUtils.getInstance('sp').p...

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

12. 动效模板bug [ 76%]

...ain.ts)里增加类型注册,如 import {ui} from "./ui/layaMaxUI"; Laya.ClassUtils.regClass("ui.effectUI",ui.effectUI);但是感觉是生成的bug,这个应该自动生成在GameConfig里,求修复。。。现在太影响美术的协作效率了。 2018-12-13 1 1 分享 微博 QZONE 微信 ...

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

13. [LayaAir3]脚本集怎么用? [ 74%]

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

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

...的链接 提交 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

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

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

16. runtime运行报错! [ 67%]

...           var compClass=runtime ? (View.viewClassMap[runtime] || ClassUtils.getRegClass(runtime)):View.uiClassMap[json.type];             return compClass ? new compClass():null;         }         View.regComponent=function(key,compClass){             View.view...

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

17. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 67%]

...EffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught ReferenceError: ui is not defined 之前有人提过这个问题...

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

18. Uncaught Can not find class Laya.Text [ 67%]

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

19. 分享:关于自定义场景继承的实现 [ 66%]

...base/BaseScene"; import BaseScene=base.BaseScene; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class CustomSceneUI extends BaseScene { public txt_hello:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("CustomScene"); } } RE...

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

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

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

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