- Home /
C# print Array?
hi all,
ive got a silly question, i'm trying to Print out an array in C# but I cant seem to get it working. Any ideas?
string[] names = {"Matt", "Joanne", "Robert"};
print(names[2]);
Comment
Best Answer
Answer by FlashX · Feb 07, 2015 at 05:16 AM
ah! Answered my own question, I didn’t have it in the void Start() thanks anyways guys
void Start() { string[] names = {"$$anonymous$$att", "Joanne", "Robert"};
foreach(string i in names)
print(i);
}
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Array performance on android device 1 Answer
Find Closest Object by Name 0 Answers