大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0051 秒)
...错“webgl location not for current program”注释这里暂时解决 // if (WebGLContext._useProgram===program) // return false; gl.useProgram(program); WebGLContext._useProgram=program; return true; } cdsc • 2020-11-16 16:51 @151*****986:是需要新加这段代码么?我是用的1.X的版...
来源: Laya_社区 发布时间: 20200922
...n=this.owner.transform.localRotationEuler; // }else if(this.hitResult1.collider.owner.name=="block"){ // this.raceStart=false; // this.moving=false; // this.moveLeft=false; ...
来源: Laya_社区 发布时间: 20200222
...hParams(spirit3D, renderMode, albedo, ambientColor, uvScale, shaderName) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite = spirit3D; var mesh = meshSprite.meshFilter.sharedMesh; if (mesh) { //可采用预加载资源方式,避免异步加载资源问题,则无需注册事件。 for...
来源: Laya_社区 发布时间: 20170707
...ut:we are installing dependencies for you . this might take a while... if failed,you should install dependencies by yourself with 'npm install' 就一直卡着了 4、后再删掉2.6,用2.4打开,还是报一样错误 附件 : --> 2020-04-14 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20200414
...src", filename); trace(fileref); if (typeof fileref!="undefined")Browser.document.getElementsByTagName("head")[0].appendChild(fileref); } 上面是加载js的方法,在浏览器可以成功,但是打出APK的时候,就无法加载js, 20...
来源: Laya_社区 发布时间: 20170321
Laya2.8.0的wxmini类库小BUG反馈 class MiniFileMgr { static isLocalNativeFile(url) { for (var i = 0, sz = MiniAdpter.nativefiles.length; i < sz; i++) { if (url.indexOf(MiniAdpter.nativefiles[i]) == 0) return true; } return false; }[/i] (Laya2.8.0切换类库后发现)判断不应为==0 ...
来源: Laya_社区 发布时间: 20201107
...nt.CLICK, this, function () { layaPlane.getChildAt(0).meshRender.material.diffuseTexture = renderTargetCamera.renderTarget; }); })); } function setMaterials(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite = spirit3D; for (var i = 0; i < meshSprite.meshRender.sharedMaterials.l...
来源: Laya_示例 发布时间: 20251219
...aSize.w, this.hexaSize.h, Laya.Handler.create(this, function () { index++; if (index >= views.length) { img.mask = imgMask; } })); imgMask.addChild(tmpMask); 附件 : --> 2020-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20200619
...pe=function(type,components){ var index=this._componentsMap.indexOf(type); if (index===-1) components.length=0; //这里应该返回了!!!!!!!!!! var typeComponents=this._typeComponentsIndices[index]; var count=typeComponents.length; components.length=count; for (var i=0;i < count;i++) components...
来源: Laya_社区 发布时间: 20170630
...s( [ this.sMapRes, this.sBullRes, this.sEnemyRes ], function (bIsFinish) { if (bIsFinish) { self.onResFinish(); } } ) } onResFinish() { let pNewScene = <Laya.Scene3D>Util3d.getRes(this.sMapRes, false) Laya.stage.addChild(pNewScene); Util3d.getChildByPath(pNewScene, "Main Camera").active = fals...
来源: Laya_社区 发布时间: 20200720