Question by
Sergold88 · Oct 03, 2015 at 10:26 PM ·
networkingtemplatederived-class
Is it possible to create NetworkBehavior derived template?
I'm trying to create script that derived from NetworkBehaviour class for a card game.
public class CardInstance: NetworkBehaviour, ICardInstance, IListenerModel
This code works right, but it is so useful if CardInstance will be a template:
public class CardInstance<T> : NetworkBehaviour, ICardInstance, IListenerModel
The template is stored in file named CardInstance, and Unity can't go to player mode and is reporting about error because, as I understood, name of file doesn't contain<T> . I can't rename file because <> can't be put into file name.
Could you help me with this? Thank you!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612035937im_/https://answers.unity.com/themes/thub/images/avi.jpg)