Answers for "initialising arrays inunity script"

C#
1

unity make a int arry with preset values

// For a preset arry in c#

var arr = new string[3] {"one", "two", "three"};

// Or you can do this:
 string[] arr = {"one", "two", "three"};
Posted by: Guest on January-06-2020
-1

unity array c#

GameObject[ ] carsInTheScene = GameObject.FindGameObjectsWithTag("car");
Posted by: Guest on April-12-2020

C# Answers by Framework

Browse Popular Code Answers by Language