https://docs.unity3d.com/ScriptReference/Editor.OnInspectorGUI.html
OnInspectorGUI는 custom inspector를 만드는 함수입니다.
특정 object class의 인스펙터에 대해 GUI를 기반으로한 나만의 커스텀 IMGUI를 만들 수 있습니다.
using UnityEngine;
using System.Collections;
using UnityEditor;
// ScriptName이라는 모든 스크립트에 대해 custom Label을 인스펙터창에 생성함
// CustomEditor 때문에 반드시 ScriptName이 있어야함. 없으면 동작하지 않음.
[CustomEditor(typeof(ScriptName))]
public class TestOnInspector : Editor
{
public override void OnInspectorGUI()
{
GUILayout.Label ("This is a Label in a Custom Editor");
}
}