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

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

1021. 关于对象池Laya.Pool的用法 [ 52%]

...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

1022. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

... 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

1023. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 52%]

... 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

1024. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 52%]

...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

1025. Laya.stage.mouseEnabled = false;设置之后不生效,还是可以接收鼠标事件 [ 52%]

...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

1026. 苹果审核发现使用了私有API [ 52%]

...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

1027. movieClip stop 没有用 [ 52%]

...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

1028. 【laya2.0】请问drawToCanvas方法改了吗? [ 52%]

【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

1029. 引擎加载动画过程中断网,动画还会继续加载吗? [ 51%]

...ader里会返回error的回调,你直接监听Laya.loader.on(Event.Error,this,方法); 监听到事件回调后做自己要处理的业务逻辑即可! 2018-03-31 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 176*****998 相关问题 ...

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

1030. 请问:Ts下如何实现打开照相机和系统图库的方法?IOS和Android [ 51%]

...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