unity deactivate scripts in list
public List<MonoBehaviour> Scripts = new List<MonoBehaviour>();
void Update()
{
foreach (var sc in Scripts)
{
//Active Scripts in List
sc.enabled = true;
//Deactive Scripts in List
sc.enabled = false;
}
}
Also in C#:
- how to put double quotes in a string c#
- how to disable device guard or credential guard vmware
- raycast unity
- c# list string return concatenate
- how to pass an optional parameter in c# mvc asp.net
- c# how to take from a float
- getcomponent c#
- visual c#
- c# asp.net hover tooltip
- c# type of generic is string
- press key run code unity c#
- unity vector3 to array
- http post request login example asp.net c#
- godot c# move towards
- if statement conditions c#
- how to delete from a list c#
- unity drawline
- texture to image unity
- c# nameof
- c# get directory part of path
- c# input integer
- c# string
- what type of variable is true or false in c#
- nunit return parameter