大约有 1,020 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
...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
...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
...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
...efineNames); } } console.log("预编译完成"); } 问题描述 问题1:代码里面有10个预编译shader有一个没编译,下图中标识了最后一个没编译出来的 问题2:预编译完成后,后面有的shader又给...
来源: Laya_社区 发布时间: 20210608
...获取不到这个类 let view = Laya.ClassUtils.getInstance('MainPage'); console.log(view);(打印出来是null) //使用new 没有什么问题,可以正常显示, // var view = new MainPage(); // Laya.stage.addChild(view); 为啥呢,这个该是怎么使用的呢???????? 2018-01-22 添加评论...
来源: Laya_社区 发布时间: 20180122
...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
...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
... = 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
...,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
... return; } // console.log("this['_atlasPath']---->",this['_atlasPath']); var atls_ary:Array<any> = Loader.getAtlas(this['_atlasPath']); this.basePath=atls_ary['dir']; ...
来源: Laya_社区 发布时间: 20180615