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

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

1181. 播放音效时报错Failed to set the 'buffer' property on 'AudioBufferSourceNode'的问题 [ 51%]

...ufferSourceNode'的问题 __proto._tryClearBuffer=function(sourceNode){ // if (!Browser.onMac){ // try{ // sourceNode.buffer=null; // }catch (e){ // WebAudioSoundChannel._tryCleanFailed=true; // } // return; // } try {sourceNode.buffer=WebAudioSound._miniBuffer;}catch (e){WebAudioSoundChannel._tryCl...

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

1182. 分享问题解决,关键词:canvas不在左上角,鼠标点击位置偏移怎么办 [ 51%]

...entTop); // this._point.setTo(e.pageX || e.clientX, e.pageY || e.clientY); if (this._stage._canvasTransform) { this._stage._canvasTransform.invertTransformPoint(this._point); _this.mouseX = this._point.x; _this.mouseY = this._point.y; } _this._event.touchId = e.identifier || 0; this._tTouchID = _thi...

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

1183. FaceBook iPhone X 适配(其他正常) [ 51%]

...= "middle"; Laya.stage.alignH = "center"; Laya.stage.bgColor = "#0000000"; if (Laya.Browser.onPC) { Laya.stage.scaleMode = "exactfit"; } else { Laya.stage.scaleMode = "fixedheight"; } 附件 : --> 2019-03-29 添加评论 已悬赏20元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

1184. UI场景加载,不稳定 [ 51%]

...法 loadSuccess loadRunning 在LoadController中有个 public startLoad(){ if(LoadControl.isLaodSuccess){ console.log("加载成功了"); EventManager.Instance().BroadcastLisenter(GameEnum.load_success); }else{ console.log("开始加载进度了"); ResourceManager.Instance().loadSuccess(); // 这里...

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

1185. RenderTarget2D的create方法 [ 51%]

...Context.DEPTH_STENCIL, mipMap:Boolean = false, repeat:Boolean = false, minFifter:int = -1, magFifter:int = -1):RenderTarget2D {             var t:RenderTarget2D = POOL.pop();             t || (t = new RenderTarget2D(w, h));                          if (!t.bitmap |...

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

1186. 3D场景中背景透明 [ 51%]

...e;然后,修改3Dinit那句,增加第三个参数,改为如下代码 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height, _config); 然后就Ok了   修改好的项目,已上传到附件里了,你也可以对照附件来看一下。 xiangmu2.rar 2020-10-22 0 0 分享 微...

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

1187. 在Form输入用户名密码的时候 tab切换焦点 没有类似as3中tabindex设置 [ 51%]

...rName_txt]); private function tabNext(e:Event,target:Node):void {       if(e.keyCode == Keyboard.TAB)      {             //无法触发 焦点直接直接到浏览器外去了(浏览器地址栏)        } } 2018-09-26 0 0 分享 微博 QZONE 微信 hj 赞同来自: 您上传一下dem...

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

1188. 如何在laya中直接使用proto中定义的enum? [ 51%]

...rotoBufLoaded1); } function onProtoLoaded(err:any, root:any):void{     if (err)         throw err;     root_protocol = root; } 2017-09-11 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: http://www.cnblogs.com/dh-dh/p/5202780.html 2017-09-12 0 0 分享 微博 QZONE 微信 为...

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

1189. 关于环形进度条,进度不能重置问题 [ 51%]

...xView.prototype.loadProgress = function(){ this.box.addChild(this.circle); if(this.angle <= 360){ this.angle+=12; this.draw.graphics.drawPie(this.say.width/2, this.say.height/2, this.say.width/2+9,0,this.angle, "#ffffff"); }else{ this.draw.graphics.clear(); this.circle.graphics.clear(); } } retur...

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

1190. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 51%]

...    __proto.getTileProperties=function(index,id,name){         if (this._tileProperties[index] && this._tileProperties[index][id]){             return this._tileProperties[index][id][name];         }         return null;     }     import { ui } f...

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