Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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;
        }            
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: Getting the text from a drop-down box 
Csharp :: pricipal permission attribute in c# 
Csharp :: unity magnetize a 3d object to cursor 
Csharp :: print hello world in unity 
Csharp :: cant see my classes in inspector 
Csharp :: oracle c# parameters wont work 
Csharp :: How to install a windows service programmatically in C#? 
Csharp :: unity stop velocity movement 
Csharp :: unity2d switch camera 
Csharp :: get current location latitude and longitude in xamarin - NAYCode.com 
Csharp :: begininvoke async c# 
Csharp :: mvc model validation for decimal type 
Csharp :: httpclient getstringasync 
Csharp :: BulkWrite c# example mongodb 
Csharp :: concatenate two lists in c# 
Csharp :: add header in action asp.net mvc 
Csharp :: usermanager find based on role 
Csharp :: c# bool list count true 
Csharp :: car controller unity 
Csharp :: sql server query output to json file automatically 
Csharp :: is narcissistic number 
Csharp :: c# template strings 
Csharp :: ontriggerenter unity not working 
Csharp :: How to create a class and objects in C# 
Csharp :: what are delegates and how to use them c# 
Csharp :: google mobile ads app id 
Csharp :: unity color mix 
Csharp :: how to solo squad in fortnight 
Csharp :: populate array from an XML file 
Csharp :: dsharp emoji from string 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =