- Home /
Question by
Gongulus · Mar 26, 2019 at 11:16 AM ·
inheritancecustom editorcustom-inspectorgenericscustom-editor
Generic CustomEditor
I have a generic custom editor:
[CustomEditor(typeof(Foo<,>), true)]
public class Foo_Editor<T, U> : Editor where T : Bar where U : Foo<T,U>
And Unity crushes when I choose GameObject with derived Foo2 class in inspector after some seconds of lagging
Unless I create a blank derived custom editor for derived class:
[CustomEditor(typeof(Foo2))]
public class Foo2_Editor: Foo_Editor<Bar2, Foo2> {}
Comment