//Declaring it [SerializeField] private GameObject[] specimen; [SerializeField] private int arraySize; //Getting the array size arraySize = specimen.Length;