// Toggle the mesh visibility
 public static void Toggle(MeshRenderer mesh)
 {
     if (MeshRendererAdapter.IsHidden(mesh))
     {
         MeshRendererAdapter.Show(mesh);
     }
     else if (MeshRendererAdapter.IsShown(mesh))
     {
         MeshRendererAdapter.Hide(mesh);
     }
 }
Ejemplo n.º 2
0
 //---------------------------------------------------------------------------------------------------
 //------------------------------------ Basic Part operations ----------------------------------------
 //---------------------------------------------------------------------------------------------------
 // Is the part invisible?
 public static bool IsHidden(Part part)
 {
     return(MeshRendererAdapter.IsHidden(part.partMesh));
 }