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

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

231. 点击拖动图片,当鼠标移出再移回舞台中时如何保持点击状态 [ 81%]

...ouseX; sp.y=Laya.stage.mouseY; //可写可不写,限制sp的移动区域 if(sp.x>=400) { sp.x=400; } if(sp.x<=100) { sp.x==100; } if(sp.y>=450) { sp.y=450; } if(sp.y<=300) { sp.y=300; } } } } 2017-01-06 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...

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

232. 1.0 骨骼drawcall优化猥琐方法 [ 81%]

...ction render(context:*, x:Number, y:Number):void {             if (Render.isWebGL && mTexture) {                 context._renderKey = 0;                 context._shader2D.glTexture = null;                 SkinMeshBuffer.getInstance(...

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

233. Animation的complete事件发出是时机不够准确 [ 81%]

...topwcd 赞同来自:          protected function _frameLoop():void { if (_style.visible && _style.alpha > 0.01) { this.index = _index, _index++; if (this._index >= this._count) { if (loop) this._index = 0; else { _index--; stop(); } event(Event.COMPLETE); } } }  这里刚开始...

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

234. 接听电话后,播放音效无反应,播放音乐可以 [ 81%]

...{ _isActive = true; Laya.stage.off(Event.MOUSE_DOWN, null, _stageOnFocus); if (_blurPaused) { if (_tMusic) { playMusic(_tMusic, _musicLoops, _musicCompleteHandler, _musicPosition); } _blurPaused = false; } if(WebAudioSound.ctx.state == "interrupted") { WebAudioSound.ctx.resume(); } }   2017-10-21 0...

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

235. 一个EffectAnimation只能创建一个动画效果吗 [ 81%]

... *@param uiData */ __getset(0,__proto,'effectData',null,function(uiData){ if (uiData){ var aniData=uiData["animations"]; if (aniData && aniData[0]){ var data=aniData[0]; this._setUp({},data); if (data.nodes && data.nodes[0]){ this._aniKeys=data.nodes[0].keys; } } } });

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

236. this.bitmap.activeResource is not a function [ 81%]

...static openZone(vx:number=0,vy:number=0,scaleX:number=1,scaleY:number=1) { if(!this._openZone) { //开放域 this._openZone = new Laya.Sprite(); } this._openZone.size(Laya.stage.width,Laya.stage.height); if(this._openZone.parent) return; console.log("打开开放域",Laya.Browser.onMiniGame) Laya.st...

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

237. 为啥我在批量removeself 会报错卡死 [ 81%]

...eX = 1; this.scaleY = 1; this.alpha = 1; this.pos(0,0); this.filters = []; if(selectImg != null) { selectImg.removeSelf(); } this.mouseEnabled = true; if(this.visible == false) { this.visible = true; } super.removeSelf(); if(itemCountTx != null) { itemCountTx.removeSelf(); } return this; }   2017-1...

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

238. LAYAAIR TO PROTOBUF [ 81%]

LAYAAIR TO PROTOBUF 请问这个 类库中  if-flash  if-script 这个 有地方控制吗 ?     还是说需要 根据自己的项目 手动修改 ,例如 现在 是 AS3 项目,但编译器使用的是laya ,用 你们的工具 转化的 AS3版本的protobuf 消息文件 中 带的还是 ...

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

239. 加载界面一直显示 0% [ 81%]

...是 0%  打印了下,loadingView.prototype.loading = function (value) { if (this.bridge) { if (this.sOS == "Conch-ios") { this.bridge.call("loading:", value); } else if (this.sOS == "Conch-android") { this.bridge.call("loading", value); } console.log("loadingView.prototype.loading=" + value); } }...

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

240. 如何将stage背景设置为透明 [ 81%]

...id { _bgColor = value; conchModel && conchModel.bgColor(value);   if (Render.isWebGL) { if (value && value !== "black" && value !== "#000000") { _wgColor = Color.create(value)._color; } else { _wgColor = null; } }   if (value) { Render.canvas.style.background = value; } els...

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