Answers for "unity deactive all object in list"

C#
0

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

C# Answers by Framework

Browse Popular Code Answers by Language