Exemple #1
0
 /// <summary>
 /// Stores original color of the part being highlighted
 /// </summary>
 /// <param name="index">Index of the part in the Articulation chain</param>
 private void StoreJointColors(int index)
 {
     Renderer[] materialLists = articulationChain[index].transform.GetChild(0).GetComponentsInChildren <Renderer>();
     prevColor = new Color[materialLists.Length];
     for (int counter = 0; counter < materialLists.Length; counter++)
     {
         prevColor[counter] = MaterialExtensions.GetMaterialColor(materialLists[counter]);
     }
 }