Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity c# set list to set active true

// Set all objects in list to true:
public class Program : MonoBehaviour
{
    public GameObject[] list;
    
    void Start()
    {
        foreach (var obj in list)
        {
            obj.SetActive(true);
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# int to byte array 
Csharp :: how to check if list index is out of range in c# 
Csharp :: unity c# redirect to webiste 
Csharp :: ef core dbfirst 
Csharp :: xml node update attribute value c# 
Csharp :: c# windows application get current path 
Csharp :: c# system.drawing.color to system.windows.media.color 
Csharp :: how to make a dragable object in unity2D 
Csharp :: how to get all panels in form in c# 
Csharp :: set active for a seconds 
Csharp :: xamarin picker item 
Csharp :: how to run a function as administrator in c# 
Csharp :: C# multiple button click event to password textbox 
Csharp :: c# wirite to csv 
Csharp :: xamarin overlay 
Csharp :: unity check if gameobject is active 
Csharp :: unity deadzone 
Csharp :: c#image to bytes 
Csharp :: c# object initialization can be simplified 
Csharp :: convert int to string in linq query c# 
Csharp :: instantiate scale object 
Csharp :: oncollisionenter compare tag 
Csharp :: rotation facing mouse unity 
Csharp :: traversing an enum c# 
Csharp :: c# string to enum conversion 
Csharp :: c# repeat x times 
Csharp :: How can you learn C# on your own 
Csharp :: repeat 10 timesw c# 
Csharp :: how to execute linux command from c# 
Csharp :: c# list remove duplicate items 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =