What’s the difference between an array and a list, they look like the same thing basically? I’m a beginner so I really don’t know the difference.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ArrayLearning : MonoBehaviour
{
public string[] names; // a string array
public string[] namess = new string[3]; // A string array varible thats set to 3 by default
public string[] namesss = new string[] { "1", "2", "3", "4", "5" }; // another way of using an array
public List<string> Names;
public List<string> Namesss = new List<string>() { "1", "2", "3", "4", "5" };
}