Только не пойму TextAsset редактировать вообще нельзя?
|
Вспомнил я, что Pax говорил, что делал это для Антарес. Полез в него. Откопал. Делаем так:
[CustomEditor(typeof(TextAsset))]
public class GobInspector : Editor
{
public override void OnInspectorGUI()
{
GUI.enabled = true;
GUILayout.Label("This is a Label in a Custom Editor");
if(GUILayout.Button("Probe")) Debug.Log("PROBE");
}
}