- Home /
Array on the Inspector
I have an Array of Strings. There's an easy solution to make that array appear on the Inspector and put the values, may be like comma separated or something like this?
I read a couple of threads but the solutions doesn't look easy.
Answer by Eric5h5 · May 18, 2012 at 09:14 PM
Don't ever use the Array class. Use a String[] array, or a List.<String>
.
I changed to String[] and worked perfectly!! Why I never should use Array class?
It's slow and untyped. There's nothing that can be done with Array that can't be done faster and better with List. If you don't need to resize the array, then built-in arrays are the fastest.
but how do I add a value like in arrays? In arrays you can use this Variable.Add("something");
Your answer
Follow this Question
Related Questions
NullRefenceException Using Arrays 2 Answers
Renaming Inspector 2D Array Element 0 , Element 1 1 Answer
Acessing array / list from Gizmos in editor 1 Answer
Enum drop down menu in inspector for nested arrays 2 Answers
Why can't I access the Name field in the Custom Styles section of a GUISkin in the Inspector? 2 Answers