大约有 426 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
...setInterval明显延迟执行; Laya.stage.on('click', null, function (e) { console.log.log(`click`); }); 即使我将所有的事件绑定全部注释掉频繁的点击页面也会卡住!!!!! 我在事件的处理函数中设置stopPropagation没有任何作用; 现在这个是一个很大的问题,...
来源: Laya_社区 发布时间: 20170323
...后在开始的时候进行了Laya.MiniAdpter.init(true);,接着就尝试console.log(Laya.Browser.window.wx); 是未定义的 lock_neo • 2018-06-03 12:06 我又在JS下创建了微信小游戏示例,确定了文件的引入,还是没有Laya.Browser.window.wx这个对象
来源: Laya_社区 发布时间: 20180602
...同来自: Rickshao 、qq771472501 Laya.timer.once(4000,this,function(){ console.log(Browser.window.sharedCanvas) var rankTexture=new Texture(Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange=true; console.log(rankTexture) LayaUISample.scoreview.grap...
来源: Laya_社区 发布时间: 20180310
...com.battlecry.idle_m.data_proto.WalletModel;" var a=staticHelp.exec(line); console.log(a);的确会卡死。应该是你们的这个tsSort里面的正则有问题吧。 多谢 附件 : --> laya_compile_bug.zip 2018-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20181115
...的代码 private onynYesBtn(evt: Laya.Event): void { console.log("[BtnClick] [onynYesBtn!]"); //this.yn_board_Cc.selectedIndex = 0; //跳转新场景 Laya.Scene.close("Scene.ls"); this._view.dispose(); Laya.Scene.open(...
来源: Laya_社区 发布时间: 20230517
...st01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { console.log("111111111111111111111") var target: Laya.Sprite3D = scene3d.addChild(sp) as Laya.Sprite3D; camera.convertScreenCoordToOrthographicCoord(pos, translate); target.transform.position = translate; target.tra...
来源: Laya_社区 发布时间: 20191206
...方式处理输入。例如: this.aNode.on(Laya.Event.CLICK, ()=> { console.log("clicked"); }); class MyScript extends Laya.Script { //脚本事件 onMouseClick(e:Event) { console.log("clicked"); } } aNode.addComponent(MyScript); 以上两种方式是等价的,且在纯2D,或2D/3D混合这...
来源: Laya3.0_文档 发布时间: 20251010
...e; this._btnPlaySound.visible = false; console.log(this.soundMan.resume); if (this.playBoo) { this.soundMan.play(); this.playBoo = false; }else { this.sound...
来源: Laya_社区 发布时间: 20190919
...Laya.Pool.getPoolBySign("Bullet"); // 查看当前对象池内对象数量 console.log( bulletPool.length ); if( bulletPool.length == 0 ) { // 把子弹放入对象池 pool.push( new Bullet() ); } 2.2 清理一个对象池 /** * 清除对象池的对象。 * @param sign 对象类型标识字符。 *...
来源: Laya3.0_文档 发布时间: 20251010
...aya.init(1280,720); //无问题 Laya.init(1280,720,Laya.WebGL);//有问题 console.log(Laya.version); var testSpriteRotation:PanelRotationTest = new PanelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new...
来源: Laya_社区 发布时间: 20170814