Hi, I am a newbie to Unity so please consider my unskilled script. I tried to change color of specific part of gameObject, which is only a part of bone structure. There is a seperate skinned Mesh Renderer, which located under the bone structure, RightUpLeg, and I tried to call the renderer by scripting to change to color of it. I mapped rightLeg variable via inspector, but it still changing the color of whole character. Here is the code and pic:
var mySkinnedMeshRenderer: SkinnedMeshRenderer;
var rightLeg:Transform;
function Start () {
}
function Update () {
rightLeg.renderer.material.color=Color.red;
//mySkinnedMeshRenderer.renderer.material.color=Color.red;
}
