Hi!
I want to extend Inspector for MonoScript (any script in Assets folder) and display some information below standart script conter preview.
The problem is I can’t find any MonoScriptEditor to inherit from and inheriting from Editor
removes MonoScript GUI (script preview, script name, Assembly information and so on).
using UnityEditor;
[CustomEditor(typeof(MonoScript))]
public class CustomMonoScriptInspector : /* ----> */ Editor // <---- What to put here?
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
EditorGUILayout.PrefixLabel("My additional info");
}
}