Answers for "unity c# set list to set active true"

C#
1

unity c# set list to set active true

// Set the whole list of game objects to false:
public class Program : MonoBehaviour
{
    public GameObject[] deck;
    
    void Start()
    {
        foreach (var obj in deck)
        {
            obj.SetActive(true);
        }
    }
}
Posted by: Guest on June-12-2021

C# Answers by Framework

Browse Popular Code Answers by Language