unity how to make something invisible code example
Example 1: how to make an object invisible unity
GetComponent(MeshRenderer).enabled = false;
Example 2: set text in unity invisible
text.gameObject.SetActive(false);
GetComponent(MeshRenderer).enabled = false;
text.gameObject.SetActive(false);