how to disable script in unity with custom name code example
Example 1: unity deactive code from code
public MonoBehaviour script;
void Start()
{
script.enabled = false;
}
Example 2: how to turn off scrips in unity
this.enabled = false;
public MonoBehaviour script;
void Start()
{
script.enabled = false;
}
this.enabled = false;