大约有 111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)
升级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
Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 官方示例发布微信小游戏,在开发者工具中报错 附件 : --> Demo.zip 2020-05-18 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...
来源: Laya_社区 发布时间: 20200518
... } } //激活启动类 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
... 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
MovieClip is not a constructor 在vsCode中写ts语法,创建MovieClip后运行报错:MovieClip is not a constructor! 2017-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 18688961270 赞同来自: 已...
来源: Laya_社区 发布时间: 20170718
...一个场景的同时执行异步方法 */ 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
...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
Uncaught TypeError: GlowFilter is not a constructor 使用 GlowFilter ,编辑模式下F9 引入了Filter 依然报这个错,ColorFilter没问题 2019-02-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_...
来源: Laya_社区 发布时间: 20190222
...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
... 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