I have followed several tutorial on setting up a custom editor for components in Unity but all result in nothing changing in Unity. Any ideas what I’m missing? Thanks!
File: Assets\Editor\PlanetControllerInspector.cs
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(PlanetController))]
public class PlanetControllerInspector : Editor {
public override void OnInspectorGUI()
{
GUILayout.Label("TEST");
}
}
File: Assets\Scripts\PlanetController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlanetController : MonoBehaviour {
public Camera Cam;
public int MaxPlanetResolution = 3;
public int QuadSize = 16;
public int PlanetSize = 32;
....
}