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

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

11. 关于js继承类class的参数问题 [ 90%]

关于js继承类class的参数问题 Laya.class(LoginView, "LoginView", LoginUI) ; // 设置继承关系. 括号里第一个参数是一个方法,第三个是要继承的对象,第二个参数字符串是什么意思啊。 自己写了一个继承,Laya.class(LayaIndex,"LayaIndex",indexUI);...

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

12. 关于页面跳转的困惑,class初始化和释放的问题。 [ 89%]

关于页面跳转的困惑,class初始化和释放的问题。 我是这样实现页面跳转的 var b = new B()  然后stage.addChild(b) ,这时候UI从A切换到了B   然后 var a = new A() 然后 stage.addChild(a) ,这时候UI从B切换到A   以上实现UI页面的跳转,但是发...

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

13. 新建项目警告this class[MiniAdpter] already exist: Object {init: } [ 89%]

新建项目警告this class[MiniAdpter] already exist: Object {init: } 附件 : --> 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qweouyang1990 赞同来自: 明白了,正常提示,有点蛋疼 2...

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

14. 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' [ 89%]

升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' 将tsconfig.json里的"target":"es6"改为"es5"会报错: Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new'   会升级到2.2.0Beta主要是看升级日志里,这个...

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

15. 报错 Warning!,this class[HBox] already exist: [ 88%]

报错 Warning!,this class[HBox] already exist:   附件 : --> 2017-11-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: 你这是重名了,所以报错 2017-11-03 0 2 分享 微博 QZ...

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

16. 提问:idea问题 idea laya.core.js老是提示class一已经存在 [ 88%]

...LayaAir IDE LayaAir引擎 提问:idea问题 idea laya.core.js老是提示class一已经存在 老是提示这个classname重名 附件 : --> 2018-01-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...

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

17. TypeScript语法问题,泛型 [ 88%]

...但是写了很多遍没成功,有人会吗?下面是C#代码 public class Class1<T> where T : class, new() { private static T instance; public static T GetInstence() { if (null == instance) { instance = new T(); } return instance; } } 这样我在其他地方,继承Class1,就可以直...

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

18. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 88%]

...t中使用本地能力 下面是一个推荐做法: //Script.ts @Laya.regClass() class Script extends Laya.Script { wantToUseNode() { EditorEnv.scene.runScript("TestSceneScript.visitNode"); } } //TestSceneScript.ts import fs from "fs"; //注意是IEditorEnv.regClass,不是Laya.regClass!! @IEdito...

来源: Laya3.0_文档 发布时间: 20251010

19. 使用/*[COMPILER OPTIONS:normal]*/来编译分包无法生成Dictionary类的定义 [ 88%]

...testdict\src\test"文档类 package { /*[COMPILER OPTIONS:normal]*/ public class testdict { public function testdict() { } } }分包的类package test { import laya.display.Stage; import laya.utils.Dictionary; import aa.TestAA; public class AAA { public function AAA() { TestAA; Laya.stage; Stage; va...

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

20. 内嵌模式 Can not find class laya2.0 在1.0上面无此问题 [ 87%]

内嵌模式 Can not find class laya2.0 在1.0上面无此问题 Uncaught Can not find class ui.yyyUI   模式为内嵌模式    然后如果一个界面view 里面嵌套了另外一个view,就会出现找不到这个类的错误提示  如下图,代码也上传了     附件 : --> test.r...

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