大约有 494 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0043 秒)
...取一个 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
...; 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
...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
...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
...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
...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
...目录%\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
...* *加载层级文件,并作为该节点的子节点。 *@param url */ __proto.loadHierarchy=function(url){ this.addChild(laya.d3.core.Sprite3D.load(url)); } 这个函数也是会出问题的 2017-08-09 0 0 分享 微博 QZONE 微信 183*****755 赞同来自: 请使用最新版引擎,如果还...
来源: Laya_社区 发布时间: 20170808
...下,手动释放和恢复 /** *释放纹理 */ __proto.destroyTexture=function(){ if(this._mainTexture!=null){ this._mainTexture.disposeBitmap(); } this._needRecoverTexture = true; } /** ...
来源: Laya_社区 发布时间: 20201128
....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