大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
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_示例 发布时间: 20260303
...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
...41966 最后参考这位的,不过做了一些修改,原来的代码 uniform vec4 u_Tintcolor; #ifdef RENDERMODE_MESH varying vec4 v_MeshColor; #endif #ifdef FOG varying vec3 v_PositionWorld; uniform vec3 u_CameraPosition; uniform float u_FogStart; uniform float u_FogRange; #ifdef AD...
来源: Laya_社区 发布时间: 20190802
... let physicsCollider = LayaWrap.getNodeCom(node3D,Laya.PhysicsCollider); if(physicsCollider == null){ physicsCollider = node3D.addComponent(Laya.PhysicsCollider); } physicsCollider.colliderShape = new Laya.BoxColliderShape(sizeX,sizeY,sizeZ); physicsCollider.colliderShape.localOffset = vOffSet; ph...
来源: Laya_社区 发布时间: 20190517
1.7.19beta版播放音乐异常 if (this.gain.gain.setTargetAtTime){ this.gain.gain.setTargetAtTime(this._volume,this.context.currentTime,0);一跑起来就在这里异常 "Failed to execute 'setTargetAtTime' on 'AudioParam': Time constant must be a finite positive number: 0" 在chrome里调试...
来源: Laya_社区 发布时间: 20180519
...0 分享 微博 QZONE 微信 黄羽 赞同来自: 关节要先手动移除 if(!revoluteJoint.destroyed){ revoluteJoint._destroy() } 再移除sprite 2019-02-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 mb137 相关问题 看了其他...
来源: Laya_社区 发布时间: 20190214
...umber = 25; while (--n > 0) { let mov0 = this["item" + n] as MovieClip; if (mov0) { mov0.visible && (mov0.visible = false); mov0.playing && mov0.stop(); mov0.parent && mov0.parent.removeChild(mov0); mov0.destroy(true); delete this["item" + n]; } } } 2018-10-25 添加评论...
来源: Laya_社区 发布时间: 20181025