Can't spawn NetworkObject - it is registered as a prefab
Describe the bug
I have a prefab registered with a NetworkObject component, and my class inherits from NetworkBehaviour. I call Instantiate({Prafab}).GetComponent
To Reproduce Steps to reproduce the behavior:
- Create a NetworkObject.
- Instantiate it.
- Call Spawn().
- See pictures
Actual outcome Nothing works.
Expected outcome I can spawn a networked object.
Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):
- OS: Windows 10,
- MLAPI v0.1.0
- Unity 2021.1.10
In case you need proof that I did not mess up any configuration.


So the issue is that GetComponentInParent() requires the GameObject to be active. Surely this should not be a requirement, and we should use GetComponent() first before falling back to Parent().