質問です。 エディタ拡張入門を見ながら、カスタムエディターを作ってみているのですが、 Hoge.cs---- using UnityEngine; using System.Collections; public class Hoge : MonoBehaviour { }
と HogeEditor.cs----- using UnityEngine; using UnityEditor; using System.Collections; [CustomEditor(typeof(Hoge))] public class HogeEditor : Editor { public override void OnInspectorGUI() { } } を作ったのですが、HogeEditor.csの [CustomEditor(typeof(Hoge))]のHogeで "型または名前空間の名前'hoge'が見つかりませんでした。"とエラーが出ます 現在、HogeEditor.csのみEditorフォルダ内に格納しているのですが、 Hoge.csもEditorフォルダに格納すると、このエラーは消えます。 しかしそうすると、hogeスクリプトをCubeに追加できなくなるので困っています. どうコードをかけばエラーは消えますか?