Quantcast
Channel: Answers for "Is there any way to view 2d arrays in the inspector?"
Viewing all articles
Browse latest Browse all 18

Answer by Bunny83

$
0
0
No, multidimansional arrays are not serialized by Unity and therefore can't viewed in the inspector. ***edit*** The only way is to use an array of a serializable class / struct which contains another array. See this [question][1] for more details. I know there are a lot better examples around, but can't find them at the moment. [1]: http://answers.unity3d.com/questions/64479/how-to-declare-a-multidimensional-array-of-strings.html

Viewing all articles
Browse latest Browse all 18

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>