Answers for "how to make an object appear and disappear in unity"

C#
1

how to make an object appear and disappear in unity

void Update() {
   if (Input.GetMouseButtonDown(0)) {
     gameObject.active = true;
   }
   if (Input.GetMouseButtonDown(1)) {
     gameObject.active = false;
   }
 }
Posted by: Guest on July-10-2020

Code answers related to "how to make an object appear and disappear in unity"

C# Answers by Framework

Browse Popular Code Answers by Language