Answers for "how to deactivate a part of code of a script in unity c#"

C#
2

unity deactive code from code

public MonoBehaviour script;

void Start()
{
script.enabled = false;
}
Posted by: Guest on April-10-2020
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

Code answers related to "how to deactivate a part of code of a script in unity c#"

C# Answers by Framework

Browse Popular Code Answers by Language