change opacity of GameObject

[GameObject].SetActive(false); another way is to disable renderer of that object.