Generic Network Behaviours

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?

2293767–154313–GenericsNetworkBehaviourRepro.zip (34.9 KB)

Confirmed, I’m getting that exception too when trying your example.

This is not supported. There are no plans for adding support for this.

bug 727522 filed on this causing a UNetWeaver exception