Skip to content

Compiler exception thrown when NetworkBehaviour inheritance is more than one layer dep #1078

Closed
@becksebenius-unity

Description

@becksebenius-unity

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):

  • OS: Win10
  • Unity Version: 2020.3
  • MLAPI Commit: 89a92fb

Additional context
Repro project included
getTypeName_ILPP_repro.zip

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions