Is it possible to use separator / divider when displaying enum field in inspector?
Hello, as my questin says, I have an "Item" ScriptableObject with a public enum called "Category" declared in it. I'd like to know whether it is possible to show it with separator in inspector, something that would look like this:
I guess I have to make a CustomEditor script for my Item class, but I really don't know where to start. I've also tried messing around with EnumPopup and Popup with no luck. My "Category" enum consits of values I use to filter my Inventory script, such as Armor, Weapon, Potion, Food, etc. Thanks in advance!
Answer by Ervo · Sep 20, 2020 at 03:31 PM
I discovered that you can create a separator if one of the values is an underscore. But as you only can put one underscore in an enum (because you can't repeat values) I don't know how to put more of them.