Can't do operations on NetworkList
with no NetworkManager
(offline)
#2539
Labels
priority:medium
stat:imported
Status - Issue is tracked internally at Unity
Tracking
Has been added to tracking
type:bug
Bug Report
type:feature
New feature, request or improvement
type:feature 2.0.0
New NGO 2.0.0 feature, request or improvement
Description
When using a
NetworkList
with noNetworkManager
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
The text was updated successfully, but these errors were encountered: