Answer by Bunny83
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...
View ArticleAnswer by Wilaxxx
to see 2d arrays in the inspector try this: var array2d : MyArray[]; class MyArray{ var myArray : float[]; }
View ArticleAnswer by sumeetkhobare
Hey, I stumbled in this same issue a month ago and after solving it, I have made a solution to this, now. I have made a grid view for a 2D array. You can find it here: https://youtu.be/uoHc-Lz9Lsc Its...
View ArticleAnswer by Goshand
Hey guys, If you want to use a 2d List of something like tiles for a Tile map, I wrote a fun solution that makes a wrapper around a 1d List and allows you to work with them as if they it were a 2d List...
View ArticleAnswer by Sarchy
Simple example, allows editing in Inspector non-debug mode: [System.Serializable] public struct NPCImgs { [SerializeField] public Sprite[] Img; } public NPCImgs[] CharSprites;
View ArticleAnswer by Eldoir
Hello there, I just came across this question today at work and solved it, I made a GitHub for this: https://github.com/Eldoir/2DArrayEditor Hope you'll like it :)
View ArticleAnswer by ThisIsAnUser
If you want a matrix for Coordinates you can do it also like this : ---------- *public Vector2[] vectorName;* ---------- In inspector you can set the vector size and also can set x and y for each...
View Article