大约有 1,172 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0052 秒)
Laya_社区(877) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(39) laya_api(2) Laya2.0_api(2)
...sh(sp); Laya.stage.addChild(sp); } } initialize(); Laya.stage.on("click", this, function() { var sp; for(var i = 0, len = sprites.length; i < len; i++) { sp = sprites.pop(); Pool.recover(SPRITE_SIGN, sp); Laya...
来源: Laya_社区 发布时间: 20160729
... ret; } //粒子特效初始化 private Init(file_path:string): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获...
来源: Laya3.0_文档 发布时间: 20251010
... ret; } //粒子特效初始化 private Init(file_path:string): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获...
来源: Laya3.0_文档 发布时间: 20250104
...Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { showBg(); createTimerAnimation(); showTotalSeconds(); createController(); } function showBg() { var bg = new Image(bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg...
来源: Laya2.0_文档 发布时间: 20210715
...3 人 yyqx1122 • 2018-04-17 10:51 代码如下: Laya.stage.on('click', this, function(){ console.log('click'); Laya.stage.mouseEnabled = false; }) 我给Laya.stage绑定了鼠标事件,然后我将Laya.stage.mouseEnabled手动设置为false,这个时候Laya.stage应该是不接收鼠标事...
来源: Laya_社区 发布时间: 20180416
...nge. Continuing to use or conceal non-public APIs in future submissions of this app may result in the termination of your Apple Developer account, as well as removal of all associated apps from the App Store. 2018-02-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20180213
...var mc:MovieClip=new MovieClip(); mc.load('reset.swf'); mc.on(Event.LOADED,this,onLoaded,[mc]); Laya.stage.addChild(mc); } private function onLoaded(mc:MovieClip):void { mc.gotoAndStop(0); } } }我测试是没有问题,注意下,在资源加载完成后再去对你的swf进行控制,你可以...
来源: Laya_社区 发布时间: 20170116
【laya2.0】请问drawToCanvas方法改了吗? var htmlCanvas=this.p6_work.drawToCanvas(575,1023,0,0); var canvas=htmlCanvas.getCanvas(); var base64=canvas.toDataURL("image/png"); 报错:Uncaught TypeError: Failed to execute 'bindTexture' on 'WebGLRenderingContext': parameter 2 is not of type ...
来源: Laya_社区 发布时间: 20181010
...ader里会返回error的回调,你直接监听Laya.loader.on(Event.Error,this,方法); 监听到事件回调后做自己要处理的业务逻辑即可! 2018-03-31 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 176*****998 相关问题 ...
来源: Laya_社区 发布时间: 20180331
...a.stage.addChild(button); button.on(laya.events.Event.CLICK,this,function () { let photo = laya.utils.Browser.getElementById("photo"); photo.click(); }); } } new GameMain(); 为什么 click事件没有响应? 猜想...
来源: Laya_社区 发布时间: 20161114