unity debug log array code example
Example: Print arraylist values to console unity
// C# In Unity
string[] aHuman = { "Leyla", "Pedro", "Carlos", "Ana" };
function Start ()
{ //create a new variable Human so you can get the values
foreach (string human in aHuman)
{
Debug.Log(human);
}
}
// Press Play and open the Console