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

大约有 494 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0043 秒)

271. 在加载swf动画之后在封装的里面报错了 , 用的官网的例子 [ 66%]

...取一个 Int16 值。     *@return Int16 值。     */     __proto.getInt16=function(){         if (this._pos_+2 > this._length)throw "getInt16 error - Out of bounds";         var us=this._d_.getInt16(this._pos_,this._xd_);         this._pos_+=2;       ...

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

272. 最新版本绘制100x100个sprite ios不能显示 [ 66%]

...; this.init(); } Laya.class(GameMap, "GameMap", laya.display.Sprite); var _proto = GameMap.prototype; _proto.init = function(){ var boxSp = new laya.display.Sprite(); // boxSp.cacheAsBitmap = true; for(var i = 0; i < this.MapRowNum; i++){ for(var j = 0; j < this.MapColNum; j++){ var box = new ...

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

273. drawToCanvas真机资源无法释放 [ 66%]

...is.paper.displayObject.height, 0,0); htmc.destroy(); --------》     __proto.destroy=function(){         this._ctx && this._ctx.destroy();         this._ctx=null;     } 在这里,this.ctx并没有destroy方法,native上直接崩溃 2018-12-19 0 1 分享 微博 QZO...

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

274. LayaAir引擎1.7 之后as转换js,出现问题 [ 66%]

...if (value) _mcAni.removeFromParent(); }   1.7之后的转换 __getset(0,__proto,'visible',function(){ return Laya.superGet(SwatAniUI,this,'visible'); },function(value){ Laya.superSet(SwatAniUI,this,'visible',value); if (value) this._mcAni.removeFromParent(); }); //----Laya.superSet,没有这个...

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

275. 全局动画不能加载 [ 65%]

...Animation.framesMap会存一个hero_fly的动画。 但是play的实现 __proto.play=function(start,loop,name){ (start===void 0)&& (start=0); (loop===void 0)&& (loop=true); (name===void 0)&& (name=""); if (name)this._setFramesFromCache(this._url+"#"+name); this._isPlaying=tru...

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

276. 飞机大战出现的问题注册了类New的时候报错未定义 [ 65%]

...onLoop); } //注册类 Laya.regClass(BackGround,"BackGround",_super); var _proto = BackGround.prototype; _proto.onLoop = function(){ //背景容器每帧向下移动一像素 this.y +=1; //如果背景图到了下面不可见的位置,立即调整位置到最上边 if(this.bg1.y+this.y>=852){ t...

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

277. 分离模式下使用自定义场景类 [ 65%]

...目录%\resources\app\out\vs\layaEditor\h5\layabuilder.max.js,搜索“__proto.parseTsImport”,修改该函数体内容:__proto.parseTsImport=function(str){ var tStr = str.replace("import",""); str = 'from'; str = tStr.indexOf(str) > -1 ? str : '='; tStr = StringTool$1.trimSide(tStr.split(...

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

278. 1.7.8版本Sprite3D.load问题 [ 65%]

...* *加载层级文件,并作为该节点的子节点。 *@param url */ __proto.loadHierarchy=function(url){ this.addChild(laya.d3.core.Sprite3D.load(url)); } 这个函数也是会出问题的 2017-08-09 0 0 分享 微博 QZONE 微信 183*****755 赞同来自: 请使用最新版引擎,如果还...

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

279. spine 推荐使用方式 [ 64%]

...下,手动释放和恢复 /**     *释放纹理     */     __proto.destroyTexture=function(){         if(this._mainTexture!=null){             this._mainTexture.disposeBitmap();         }         this._needRecoverTexture = true;     }     /** ...

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

280. 分享:Laya开发TS项目使用pomelo客户端SDK(pomelo-jsclient-websocket) [ 64%]

....js"></script> <script type="text/javascript" src="libs/pomelo/protocol.js"></script> <script type="text/javascript" src="libs/pomelo/protobuf.js"></script> <script type="text/javascript" src="libs/pomelo/pomelo-client.js"></script> 另外,pomelo-client.j...

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