### This sets GameObjects' visibility by name by enabling/disabling their MeshRenderer: static public class Utility { static public void SetVisible(string name, bool visibility = true) { GameObject.Find(name).GetComponent<MeshRenderer>().enabled = visibility; } } ### This makes the game object named "AnitaBath" visible by activating it Utility.SetVisible("AnitaBath"); ### This makes the game object named "AnitaBath" invisible by deactivating it Utility.SetVisible("AnitaBath", false); ### Assumptions This script assumes the GameObjects you are working with are *active* and contain a `MeshRenderer` component