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

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

1. 萌新求问classUtils具体是做什么用的? [ 100%]

萌新求问classUtils具体是做什么用的? 看到生成的空工程里有Laya.ClassUtils.regClass,一直没有搞明白这个类具体是做什么用的,如何使用。生成的示例工程有有bullet的注册,但是没有看到具体是在什么地方使用的。也没看看到相关...

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

2. 动效模板bug [ 89%]

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

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

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

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

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

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

5. Uncaught Can not find class Laya.Text [ 82%]

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

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

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

7. layaMaxUI.ts没有自动生成场景类代码 [ 76%]

...port Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; 2019-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 kylin 赞同来自: 1566554748用户 检查场景的导...

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

8. 有没有什么Api可以通过这个类的字符串来获得这个类 [ 70%]

...接 提交 1 个回复 Monica - 知识达人 赞同来自: 可以先看下ClassUtils的API 2017-09-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 xfx7788 相关问题 请问在layaIDE里,怎么调用微信小程序API laya2的Scene...

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

9. 制作的UI动效找不到,但是明明生成了该类,看论坛说的要挂载脚本 [ 67%]

...相关的链接 提交 1 个回复 不问苍生 赞同来自:    Laya.ClassUtils.regClass("ui.mainUI.Fly_ObjUI",ui.mainUI.Fly_ObjUI); 在使用动效之前,调用,具体做什么的暂时不知道,UI找不到类的错误使用 2018-12-14 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 ...

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

10. layaMaxUI.ts的自动生成代码bug [ 67%]

...import View=Laya.View; import Dialog=Laya.Dialog; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class MainSceneUI extends Laya.SceneBase { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("MainScene"); } } REG("ui.MainSceneUI",MainScene...

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