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

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

1. 升级Laya2.2.0报Class constructor Scene cannot be invoked without 'new'解决办法 [ 100%]

升级Laya2.2.0报Class constructor Scene cannot be invoked without 'new'解决办法   升级库到2.2.0beta: ①下载LayaAir2.2.0beta库文件 ②把根目录下bin/libs删掉,解压库文件libs到bin/libs目录 ③把根目录下libs删掉,解压库文件ts到根目录 运行报错:Cl...

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

2. Uncaught TypeError: Class constructor Component cannot be invoked without 'new' [ 96%]

Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 官方示例发布微信小游戏,在开发者工具中报错 附件 : --> Demo.zip 2020-05-18 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...

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

3. 继承Scene没有onEnable [ 93%]

... } } //激活启动类 new Main();  class tt extends Laya.Node{     constructor(){         super();     }     public onAwake():void{         console.log(1111);     } }   2.继承Sprite 执行后会有onAwake         let t = new tt();         Laya.S...

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

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

...  public scoreLbl:Laya.Label;         public tipLbll:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("test/TestScene"); } } REG("ui.test.TestSceneUI",TestSceneUI); }   这是我从新建例子里面复制的,但是我自己新建个项...

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

5. MovieClip is not a constructor [ 90%]

MovieClip is not a constructor 在vsCode中写ts语法,创建MovieClip后运行报错:MovieClip is not a constructor! 2017-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 18688961270 赞同来自: 已...

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

6. 针对2.0.0 beta5 setLoadingPage 做增强 [ 87%]

...一个场景的同时执行异步方法 */ export default class LoadPage { constructor(url = null) { this._loadScene = null if (url) this.preload(url) } /** * 预加载loading页面 * @param {String} url loading页面url */ async preload(url = 'loadingpage.scene') { if (this._loadScene && ur...

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

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

...eScene.tsexport namespace base{ export class BaseScene extends Laya.Scene{ constructor(){ super(); console.log('BaseScene:我是基类BaseScene,我的子类是导出类,我的父类是场景类'); } } } 导出UI 导出后layaMaxUI.ts的内容如下/**This class is automatically generated by LayaAi...

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

8. Uncaught TypeError: GlowFilter is not a constructor [ 84%]

Uncaught TypeError: GlowFilter is not a constructor 使用 GlowFilter ,编辑模式下F9 引入了Filter 依然报这个错,ColorFilter没问题 2019-02-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_...

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

9. Warning!,this class[MiniAdpter] already exist: Object {} [ 84%]

...s class[MiniAdpter] already exist: Object {init: } 升级Laya2.2.0报Class constructor Scene cannot be invoked without 'new'解决办法 Uncaught TypeError: Class constructor Component cannot be invoked without 'new' ClassUtils.getClass获取不到Class Uncaught 无法实例class PhysicsCollider ext...

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

10. 2.0 Beta3版本中,runtime脚本的的问题 [ 83%]

... Scene=Laya.Scene; export module ui { export class BGPageUI extends View { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("BGPage"); } } export class MonkeyPageUI extends View { constructor(){ super()} createChildren():void { super.createChildren(); this.loadS...

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