title: Unity Serializable Class Custom Inspector
body: <p>I have a very simple class in unity, UnitRange (which has a minimum and a maximum range).</p>
  
  <pre><code>[System.Serializable]
  public class UnitRange {
      public int Minimum;
      public int Maximum;
  }
  </code></pre>
  
  <p>And this shows up in the inspector (if I make a public variable of this type.) Though the default way it is shown isn't very good:</p>
  
  <p><img src="https://i.stack.imgur.com/vVffT.png" alt="enter image description here"></p>
  
  <p>Now, I was wondering how I can change this? I found how to change the inspector of monobehaviours, though couldn't find how to change it of other classes. I would like it to just be two numbers next to each other, something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/D4C14.png" alt="enter image description here"></p>
  
  <p>It's just a small thing, and not that big a problem if it's not possible, though knowing how to could prove more useful later too.</p>
  
  <p>Oh yes, as you might have noticed, I'm using c#, so it would be nice if any example code is in c#.</p>
  
  <p>Thanks.</p>