Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity deactive all object in list

    public List<GameObject> childrens = new List<GameObject>();

    void Update()
    {
        if(/* Something */)
        {
            foreach (var obj in childrens)
                obj.SetActive(false);
        }
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: serilog .net 6 
Csharp :: fluent api 
Csharp :: finding values in the registry 
Csharp :: c# creating an array 
Csharp :: C# program lambda Func 
Csharp :: select distinct two columns entity framework c# 
Csharp :: div element position in screen 
Csharp :: print c# 
Csharp :: Printing pattern in c# 
Csharp :: Save object to file C# 
Csharp :: select distinct linq mvc 
Csharp :: c# array.reduce 
Csharp :: C# System.nanoTime 
Csharp :: iterate through photon player gameobjects 
Csharp :: ASP.net ApplicationUser referance not found 
Csharp :: Match one of 1, 2, x or X, or nothing 
Csharp :: how to query items with any id in a list of ids linq c# 
Csharp :: how to customize xunit input 
Csharp :: ontriggerenter2d 
Csharp :: how to exit winforms application and shutdown pc in c# 
Csharp :: int to char c# 
Csharp :: Convert integers to written numbers C# 
Csharp :: How to install a windows service programmatically in C#? 
Csharp :: c# double without exponential notation 
Csharp :: entityframework index 
Csharp :: array in c# 
Csharp :: linq contains 
Csharp :: StringFormat C# 
Csharp :: unity get velocity at point 
Csharp :: c# string verbatim 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =