Answers for "unity deactivate scripts in list"

C#
0

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;
        }            
    }
Posted by: Guest on April-10-2020

Code answers related to "unity deactivate scripts in list"

C# Answers by Framework

Browse Popular Code Answers by Language