Hello,
I’m trying to use generics with NetworkBehaviours, compiling it gives no errors but I’m getting Invalid IL code exception at runtime
I’ve attached a project which has a simple reproduction, start from init scene and press host.
Behaviours are empty and hierarchy goes like:
ConcreteGenericNetBehaviour:AbstractGenericNetBehaviour:NetworkBehaviour
The exception that’s raised should look like
I’m guessing generics aren’t supported, will they be or is it out of scope?
Or if they are, what am I doing wrong?
Is generating invalid IL in this case by-design or is it a bug?