I am working on a project in which i need to create a custom editor/ inspector to add some setting for asset folder, however, there is already another editor already has the tag [CustomEditor(typeof(DefaultAsset), true)]
It is totally another module so I do not write my code in that class.
So is there a way to let the folder have two editors?
HI, i’m building a plugin for publish to assetstore called “Pathfinding” and for its custom editor i have same problem but for Object
I made two custom editors for same script but only one of them is executed at a time, that is if i delete the first one, second one will be executed and if i delete second one, the first one will be executed.
Gizmos Editor:
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(Pathfinding))]
public class PathfindingGizmos : Editor
{
void OnSceneGUI()
{
Debug.Log("OnSceneGUI");
}
}
Inspector Editor:
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(Pathfinding))]
public class PathfindingEditor : Editor
{
public override void OnInspectorGUI()
{
Debug.Log("OnInspector GUI");
}
}