title: Override custom inspector for Unity built in components
body: <p>I'm able to use a CustomInspector for scripts that I have written. Unfortunately this didn't work for Unity's built in Components (such as Rigidbody, Transform...).</p>
  <p>I want to hide everything else and only expose 'mass' but this isn't reflected in the Inspector. Instead, if I go to the 3 dots and click properties, it shows the CustomInspector that I've written.</p>
  <pre><code>using UnityEngine;
  using UnityEditor;
  
  [CustomEditor(typeof(Rigidbody))]
  public class RigidbodyEditor : Editor
  {
      Rigidbody rigidbody;
      float mass;
      public override void OnInspectorGUI()
      {
          // base.OnInspectorGUI();
          rigidbody = (Rigidbody)target;
  
          mass = EditorGUILayout.FloatField(&quot;mass&quot;, mass);
          if (mass &lt; 0)
          {
              mass = 0;
          }
          rigidbody.mass = mass;
      }
  }
  
  </code></pre>