For some reason, classes that derive from NetworkBehaviour cannot have generic parameters. Why is that?
This is a showstopper for us at the moment as our MVC implementation makes use of generic parameters and we therefor cannot implement a View that is capable of using unet.
Create an empty project, create a new C# script, then paste this to get the error:
[edit]
This is happening on...
"NetworkBehaviour cannot have generic parameters" - Why?
This is a showstopper for us at the moment as our MVC implementation makes use of generic parameters and we therefor cannot implement a View that is capable of using unet.
Create an empty project, create a new C# script, then paste this to get the error:
Code (CSharp):
- using UnityEngine.Networking;
- public class NetworkTest<T> : NetworkBehaviour {
- }
[edit]
This is happening on...
"NetworkBehaviour cannot have generic parameters" - Why?