Answers for "Print arraylist values to console unity"

C#
0

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
Posted by: Guest on December-08-2020

C# Answers by Framework

Browse Popular Code Answers by Language