I've created a custom inspector for a tile-based system I'm working on. The target's layout (the number and orientation of the tiles it takes up) is represented as a 2D list of boolean values (eg
asked Jun 16 '10 at 07:06 PM
A possible answer to this is that you have to set the
In this case I suppose it would be
If you are using
Putting it this way make Unity understand that this attribute must be serialized, and not shown in the inspector (altough that double list is not standard for unity, so probably it wont be shown either).
Another possible problem is that you may be making some "reintialization" of the code somewhere in your MyClass script, try to check that out (Maybe in
A third possible solution is to enable the tag
I hope this will help you. Italo F. Capasso B. AKA "Edwood Grant"
Upong checking it further, it seems that
This should definetly work, and it wil even be shown in the default inspector with
Italo F. Capasso B. AKA "Edwood Grant"
I'll bite :), List> cannot be serialized.
I'd need to check, but I think we fixed this for Unity3.
answered Sep 11 '10 at 08:51 PM
Lucas Meijer 1 ♦♦