This may be a bug, or it could be I’m doing something wrong.
I am having trouble getting the editor to recognize the existence of a C# class in an external DLL under certain conditions. Specifically, when this class derives from an intermediate class that resides in a different external DLL, which in turn derives from MonoBehavior. ie:
Assembly A contains this class:
class A : MonoBehavior
Assembly B contains this class:
class B : A
The class A is recognized and shows up in the editor, but class B does not. When I move class B into the same assembly as class A, both of them ARE recognized and it all works fine.
There seems to be something about them living in separate assemblies combined with the use of inheritance that is causing the editor not to recognize class B as a valid class deriving from MonoBehavior.
Can anyone offer a solution/workaround? Is this a real bug?