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

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

771. [LayaAir3]Laya3.3.5 2D相机drawToRenderTexture2D不生效问题 [ 51%]

...2"})     private testSprite2: Laya.Sprite;     onStart() {         console.log("Game start");         let render1 = new Laya.Sprite();         let render2 = new Laya.Sprite();          let tex1 =  this.testSprite.drawToRenderTexture2D(200,200,0,0);         let tex2 =  this...

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

772. 想用js写一个什么也不继承的类,但每次实例化这个类的时候会报错,是不是这个类写得不对呀 [ 51%]

...nction(_super){ function Test(){         Test.super(this);         console.log("执行测试构造函数"); } //注册类 Laya.class(Test,"Test",_super); //获取执行域 var _proto = Test.prototype; //_proto. return Test; })(); 2018-06-05 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

773. 发布微信后无法触发mouse_up事件 [ 51%]

...ouches.length;i++){ let t =touches[i]; let nameIndex =e.touchId + "_" + i; console.log(nameIndex+":"+e.type); } } } 之能收到down和move! 2018-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 Luren_yi ...

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

774. shader预编译的bug [ 51%]

...efineNames);             }         }          console.log("预编译完成");     }   问题描述 问题1:代码里面有10个预编译shader有一个没编译,下图中标识了最后一个没编译出来的 问题2:预编译完成后,后面有的shader又给...

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

775. 问一下Laya.ClassUtils.getInstance()怎么使用的,为啥我 直接传入一个.'类名' 竟然提示错误获取不到这个类 [ 51%]

...获取不到这个类 let view = Laya.ClassUtils.getInstance('MainPage'); console.log(view);(打印出来是null) //使用new 没有什么问题,可以正常显示, // var view = new MainPage(); // Laya.stage.addChild(view); 为啥呢,这个该是怎么使用的呢????????   2018-01-22 添加评论...

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

776. 物体每帧y方向移动,超出屏幕高度消失,可还没有超出屏幕高度就提前消失了! [ 51%]

...n = function () { this.speed = 1; Laya.timer.frameLoop(1, this, () => { console.log(this.obstacle0.y, Laya.Browser.height); //this.obstacle0是一个精灵对象 this.obstacle0.y += this.speed; if (this.obstacle0.y > Laya.Browser.height) { this.obstacle0.removeSelf(); } }); } 2018-08-23 添加...

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

777. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 51%]

...nd(x0 + r * Math.cos(hudu)); let y1 = Math.round(y0 + r * Math.sin(hudu)); console.log("Point :x=", x1, "y=", y1,"hudu=",a); return { x: x1, y: y1, hudu: a }; }   2019-06-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 ...

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

778. Laya2.2问题,有没有遇到的? [ 51%]

... = true; this.onConfigLoaded(); } onVersionLoaded() { } onConfigLoaded() { console.log(123131313213); } } new Main();  }());   错误信息: Uncaught TypeError: window.wx.getFileSystemManager is not a function     at window.wxMiniGame (laya.wxmini.js:271)     at Function.__init__ (laya.core....

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

779. 如何使用graphics绘画虚线 [ 51%]

...,Handler.create(this,()=>{ sp.graphics.getBoundPoints().forEach(e=>{ console.log("_getBoundPointsM:",e); }); })); sp.x=0; sp.y=0; this._sptse=sp; Laya.stage.addChild(sp);

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

780. 版本管理swf找同名的Json文件发现找不到 [ 51%]

...       return;             }             // console.log("this['_atlasPath']---->",this['_atlasPath']);             var atls_ary:Array<any> = Loader.getAtlas(this['_atlasPath']);             this.basePath=atls_ary['dir'];        ...

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