arrays inside function c# unity code example Example 1: unity array c# public string[] myArrayName = new string[4]; Example 2: unity array c# new List();