Answers for "how to deactivate objects through scripts in unity"

C#
2

how to deactivate objects through scripts in unity

public GameObject Name = GameObject.Find("Name");

Name.enabled = true;
Posted by: Guest on April-30-2020
0

how to deactivate objects through scripts in unity

public GameObject Object; //drag your object in from the hierarchy

Object.enabled = true; //enables object
Object.enabled = false; //disables object
Posted by: Guest on March-31-2021

Code answers related to "how to deactivate objects through scripts in unity"

C# Answers by Framework

Browse Popular Code Answers by Language