Open
Description
Description
When using a NetworkList
with no NetworkManager
in scene (in my solo mode), operations on the list (add, insert, remove, clear...) throws an NullReferenceException.
This is because of the use of m_NetworkBehaviour
that hasn't been initialized.
NetworkVariable<T>
doesn't suffer from this behaviour because a check on m_NetworkBehaviour is made.
Actual Outcome
A null reference exception is thrown an the operation is not done.
Expected Outcome
The operation is done.
Environment
- OS: Windows 11
- Unity Version: 2021.3.22f1
- Netcode Version: develop (and all previous versions)
- Netcode Commit: dfd08d8