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

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

1021. clip里的WeakObject.I缓存的数据有问题 [ 52%]

...stage.scaleMode = Stage.SCALE_FULL; Stat.show(); Laya.stage.on(Event.CLICK,this,clickFun); } private function clickFun():void { if( clip == null ){ clip = new Clip("1.png",6,6); Laya.stage.addChild(clip); clip.play(); }else{ clip.dispose(); clip = null; } }   2017-11-28 0 0 分享 微博 QZONE 微...

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

1022. android旋转屏幕 半边黑屏 [ 52%]

..."; spr.addChild(te); Laya.stage.addChild(spr); Laya.stage.on(Event.CLICK, this, function():void { if (Laya.stage.screenMode == Stage.SCREEN_HORIZONTAL) { if (Browser.window.conchConfig) { Browser.window.conchConfig.setScreenOrientation(1); } Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage....

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

1023. 关于对象池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

1024. 3D粒子 · LayaAir3.4 · 引擎文档 · 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

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

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

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

1028. 苹果审核发现使用了私有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

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

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