Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.
MIT License
2.15k
stars
435
forks
source link
Compiler exception thrown when NetworkBehaviour inheritance is more than one layer dep #1078
Describe the bug
If ClassA derives from NetworkBehaviour, and then another class derives from ClassA, an exception is thrown during the compilation process:
(0,0): error System.InvalidOperationException: Sequence contains no matching element
To Reproduce
Steps to reproduce the behavior:
Open Unity (any version supported by NGO) and install NGO
Create a class called ClassA that derives from NetworkBehaviour
Create a second class that derives from ClassA
See error
Actual outcome
An exception is thrown during compilation
Expected outcome
Compilation succeeds in this scenario
Environment (please complete the following information):
Describe the bug If ClassA derives from NetworkBehaviour, and then another class derives from ClassA, an exception is thrown during the compilation process:
(0,0): error System.InvalidOperationException: Sequence contains no matching element
To Reproduce Steps to reproduce the behavior:
Actual outcome An exception is thrown during compilation
Expected outcome Compilation succeeds in this scenario
Environment (please complete the following information):
Additional context Repro project included getTypeName_ILPP_repro.zip