大约有 1,488 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
... // @xd added, 如果index == -1 不执行 if(index == -1){ return; } this.length--; if (index!==this.length){ ...
来源: Laya_社区 发布时间: 20190618
...R { constructor () { this._isWxContext = !!window.wx } onShow (callback) { if (!this._isWxContext) return window.wx.onShow(callback) } onHide (callback) { if (!this._isWxContext) return window.wx.onHide(callback) } offShow (callback) { if (!this._isWxContext) return window.wx.offShow(callback) } off...
来源: Laya_社区 发布时间: 20181101
....getTexture(); this.material.setTexture(tex); this.plane.active = true; // if(oldTex) // { // MeshPool.destoryRes(oldTex["keyUrl"],oldTex); // } }我所注视的就是上面在laya.3d.js 中出现的那个alert 的提示 我知道为什么 在native 会受到限制 但是在 web 上 和wx上都...
来源: Laya_社区 发布时间: 20190612
...改; //用一个临时变量处理 if(!this.tempRect){ this.tempRect = Rectangle.create(); } if (this.cacheRect) this.cacheRect.recover(); this.cacheRect = null...
来源: Laya_社区 发布时间: 20210615
...=0,j=0,m=0; n=this._eventList.length; var cameras=this._scene._cameraPool; if (n > 0){ for (i=0;i < n;i++){ var e=this._eventList; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp(); break ; case "mousemove":; var mousePoint=Input3D._tempPoi...
来源: Laya_社区 发布时间: 20200119
....loop(1000, this, changeSkin); } function changeSkin() { mCurrSkinIndex++; if (mCurrSkinIndex >= mSkinList.length) { mCurrSkinIndex = 0; } mArmature.showSkinByName(mSkinList[mCurrSkinIndex]); } function completeHandler() { play(); } function play() { mCurrIndex++; if (mCurrIndex >= mArmature.getAnim...
来源: Laya_示例 发布时间: 20251130
...: 修改如下: static _transformImgUrl(url, type, thisLoader) { if (MiniAdpter.isZiYu) { thisLoader._loadImage(url, false); return; } if (MiniFileMgr.isLocalNativeFile(url)) { thisLoader._loadImage(url, false); return; } if (!MiniFileMgr.isLocalNati...
来源: Laya_社区 发布时间: 20191129
...关键字bitmap._addReference,在laya.core.js中找到,如下代码: if (bitmap){ bitmap._addReference(); }将其改成: if (bitmap && bitmap._addReference){ bitmap._addReference(); } 其实就是在if中加了个判断 3.修改主域的game.js文件,在里面增...
来源: Laya_社区 发布时间: 20180529
...请: 与内容相关的链接 提交 2 个回复 *%〈~〉 赞同来自: if (preLoadedMap[url]) { onLoaded(preLoadedMap[url]); } else { ////////////////////////////////////////////////////// //jiaz加载kasi加载卡死wenti if(Browser.onVVMiniGame) {// _http = new HttpRequest(); _http.on(Event.PR...
来源: Laya_社区 发布时间: 20201123
...它内部包含URL.basePath的部分 __proto.onComplete=function(content){ if (this._isDestroyed){ this.destroy(); return; }; var tSkBuffer=Loader.getRes(this._skBufferUrl); if (!tSkBuffer){ this.event(/*laya.events.Event.ERROR*/"error","load failed:"+this._skBufferUrl); return; } //MODIFIED:使用f...
来源: Laya_社区 发布时间: 20190419