Unity-Technologies / com.unity.netcode.gameobjects

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

Closed becksebenius-unity closed 3 years ago

becksebenius-unity commented 3 years ago

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:

  1. Open Unity (any version supported by NGO) and install NGO
  2. Create a class called ClassA that derives from NetworkBehaviour
  3. Create a second class that derives from ClassA
  4. See error

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

0xFA11 commented 3 years ago

fixed by PR #1079