I'm trying to write a simple editor extension just for learning-purposes. This extension will just check if the target is a JSON-file then count it's keys or do some other arbitrary task.
This is how the inspector looks like by default.
Then I started writing my custom inspector, just like this.
[CustomEditor(typeof(TextAsset))]
public class TestInspector : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector();
}
}
Note the call to DrawDefaultInspector().
Now the inspector looks like this.
Why is it not drawing the default inspector? What I can understand my extension should basically do nothing, right?