Example #1
0
 public static void HideShowProp(InternalProp thatProp, bool visibility)
 {
     foreach (Renderer thatRenderer in thatProp.FindModelComponents <MeshRenderer>())
     {
         thatRenderer.enabled = visibility;
     }
     foreach (Renderer thatRenderer in thatProp.FindModelComponents <SkinnedMeshRenderer>())
     {
         thatRenderer.enabled = visibility;
     }
 }