- Home /
How do I show a hashtable in inspector?
is there a way to expose a hastable's contents in the inspector when running a project in the editor?
Answer by Skjalg · Apr 11, 2011 at 09:07 AM
Yes, but this is not easy, since it is not directly supported by Unity3D right now (neither are any other Collections like List<>).
You can, however, create your own custom inspector for a monobehaviour script, which I imagine would behave like the inspector shows Arrays right now.
You can read more about extending the editor here: http://unity3d.com/support/documentation/Components/gui-ExtendingEditor.html
I was afraid of that. :P I have a class for a data file for my game and it would have been nice to see everything in the inspector when it loads. It would probably be faster to add a window that shows the list. If I add arrays for now that have the keys and values listed, would that update?
Answer by Helical · Oct 22, 2014 at 11:50 AM
maybe my trick will help
http://answers.unity3d.com/questions/642431/dictionary-in-inspector.html#answer-814629
Your answer
Follow this Question
Related Questions
Can a GameObject inside of an array be made "accessible" from the editor? 2 Answers
Draw specific Object Inspector into Rect 1 Answer
How can a class inherit from another that is modified by editor 1 Answer
How should I serialize data that is also editable in the Inspector? 2 Answers
Customizing Inspector variables. 2 Answers