I have a very simple class in unity, UnitRange (which has a minimum and maximum range).
[System.Serializable] public class UnitRange { public int Minimum; public int Maximum; }
And this appears in the inspector (if I make a public variable of this type.) Although the default method is not shown very well:

Now I was wondering how can I change this? I found how to change the mono object inspector, although I could not find how to change it to other classes. I would like these to be just two numbers next to each other, something like this:

This is just a small thing, and not such a big problem if it is impossible, although knowing how you can be useful again later.
Oh yes, as you may have noticed, I am using C #, so it would be nice if any sample code were in C #.
Thanks.
source share