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

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

31. ts继承后,代码压缩的问题 [ 64%]

...b[p] } ; return function(d, b) { extendStatics(d, b); function __() { this.constructor = d } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __) } }(); 然后运行代码会报Uncaught TypeError: LayerManager is not a constructor的错误 我看到Laya有一个Laya.cla...

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

32. 在UI类里调用启动类的静态函数失败了 [ 63%]

...态函数失败了 这是我的启动类 // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.stage.bgColor = "#123456"; Laya.loader.load([ { url: "res/beijing/beijing2.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/co...

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

33. typeScript Java互调问题 [ 62%]

...——————————————— class LayaUISample {     constructor() {         Laya.init(1280, 720);         sumToJava();     } } function test() {     console.log("java to js") } function sumToJava() {     alert("js to java");     js2java.back(); } //程序入口 ...

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

34. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' [ 62%]

...roperty 'pivotX' of null 打开弹窗UI时报错 Uncaught TypeError: Class constructor Component cannot be invoked without 'new' TypeError: Cannot read property 'length' of null TypeError: Cannot read property 'getSubShaderAt' of undefined Uncaught TypeError: Cannot read property 'indexCount' Uncaug...

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

35. ProgressBar 代码问题 [ 60%]

...er = Laya.Handler; export class Onloading extends ui.LoadingUI{        constructor(){        super();        this.loadingBar.changeHandler = new Handler(this, this.onChange); } public changeValue():void{        console.log("change");        if (this.loadingBar.value >= 1){   ...

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

36. Laya.timer.loop() 报错 Cannot read property 'loop' of null [ 60%]

...st 。 private n:number = 0; private x0:number = 0; private y0:number = 0; constructor(){super();} onEnable():void{ this.x = this.x0; this.y = this.y0; Laya.timer.loop(20, this, this.frameWork); // 每 20 ms 执行一次 } private frameWork():void{ this.y = this.y0 + 10 * (this.n % 3); alert("move "...

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

37. graphics绘制报错 [ 58%]

graphics绘制报错 class Sprite_DisplayImage { constructor() { Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); const path = "./res/apes/monkey2.png"; Laya.loader.load(path, Laya.Handler.create(this, function() { let tex = Laya.loader.getRes(path); let sp = new Laya.Spr...

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

38. 创意互动小程序继承Laya.Scene 的类无法实例化 [ 58%]

...动小程序继承Laya.Scene 的类无法实例化 new TypeError: Class constructor Vi cannot be invoked without 'new' 附件 : --> taobaominiapp.zip 2022-10-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya...

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

39. 3D场景跳转到2D场景问题 [ 57%]

..../GameScene'; export default class VictoryScene extends VictorySceneUI {  constructor() { super();   } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene=new GameScene(); Laya.stage.addChild(gameScen...

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

40. 2.3.0beta版本,微信真机调用async函数报错 [ 57%]

...是降到es5以后又会其他地方报错: Uncaught TypeError: Class constructor Scene cannot be invoked without 'new'   现在这个问题有办法解决吗? 2019-10-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2...

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