大约有 20 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0024 秒)
...rel3 = this.scene.getChildByName("Wooden_Barrel (3)"); barrel.meshRenderer.sharedMaterial = this.mat; barrel1.meshRenderer.sharedMaterial = this.mat; barrel2.meshRenderer.sharedMaterial = this.mat; barrel3.meshRenderer.sharedMaterial = this.mat; } ``` ![](img/1.png)(图1)
来源: Laya2.0_文档 发布时间: 20210715
...ChildByName("Wooden_Barrel (3)") as Laya.MeshSprite3D; barrel.meshRenderer.sharedMaterial = mat; barrel1.meshRenderer.sharedMaterial = mat; barrel2.meshRenderer.sharedMaterial = mat; barrel3.meshRenderer.sharedMaterial = mat; ``` ![](img/1.png)(图1)
来源: Laya2.0_文档 发布时间: 20210714
...e.getChildByName("Wooden_Barrel (3)") as MeshSprite3D; barrel.meshRenderer.sharedMaterial = mat; barrel1.meshRenderer.sharedMaterial = mat; barrel2.meshRenderer.sharedMaterial = mat; barrel3.meshRenderer.sharedMaterial = mat; ``` ![](img/1.png)(图1)
来源: Laya2.0_文档 发布时间: 20210714
...,可能直接越过 */ onTriggerEnter(other) { this.owner.meshRenderer.sharedMaterial.albedoColor = new Laya.Vector4(0.0, 1.0, 0.0, 1.0); } /** * 当其他碰撞器进入绑定物体碰撞器后逐帧触发(子弹在物品内时) * 注:如相对移动速度过快,可能直接越过 */ onTr...
来源: Laya2.0_文档 发布时间: 20210715
...a.PhysicsComponent):void { ((this.owner as Laya.MeshSprite3D).meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = new Laya.Vector4(0.0, 1.0, 0.0, 1.0); } /** * 当其他碰撞器进入绑定物体碰撞器后逐帧触发(子弹在物品内时) * 注:如相对移动速度过快,...
来源: Laya2.0_文档 发布时间: 20210715
...Enter(other:PhysicsComponent):void { ((owner as MeshSprite3D).meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = new Vector4(0.0, 1.0, 0.0, 1.0); } /** * 当其他碰撞器进入绑定物体碰撞器后逐帧触发(子弹在物品内时) * 注:如相对移动速度过快,可能...
来源: Laya2.0_文档 发布时间: 20210714
...象 var selectSprite3D = out.collider.owner; (selectSprite3D.meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = this.colorRed; if(this.oldSelectMesh) if(selectSprite3D!=this.oldSelectMesh) (this.oldSelectMesh.meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = this.colorWr...
来源: Laya2.0_文档 发布时间: 20210715
...prite3D = out.collider.owner as MeshSprite3D; (selectSprite3D.meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = this.colorRed; if(this.oldSelectMesh) if(selectSprite3D!=this.oldSelectMesh) (this.oldSelectMesh.meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = this.colorW...
来源: Laya2.0_文档 发布时间: 20210714
...有的材质上锁 for (var i:int = 0; i < skinnedmesh.skinnedMeshRenderer.sharedMaterials.length;i++ ){ skinnedmesh.skinnedMeshRenderer.sharedMaterials[i].lock = true; } })); ``` ##### 3D批量加载时,资源上锁 在批量加载资源的时候,无法拿到回调值。这时候就需要...
来源: Laya2.0_文档 发布时间: 20210715
...有的材质上锁 for (var i:int = 0; i < skinnedmesh.skinnedMeshRenderer.sharedMaterials.length;i++ ){ skinnedmesh.skinnedMeshRenderer.sharedMaterials[i].lock = true; } })); ``` ##### 3D批量加载时,资源上锁 在批量加载资源的时候,无法拿到回调值。这时候就需要...
来源: Laya2.0_文档 发布时间: 20210715