We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8d6053 commit 43cc1cdCopy full SHA for 43cc1cd
1 file changed
com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs
@@ -353,7 +353,7 @@ internal bool HasParentNetworkObject(Transform transform)
353
/// <summary>
354
/// Gets the NetworkManager that owns this NetworkObject instance.
355
/// </summary>
356
- public NetworkManager NetworkManager { get; private set; } = NetworkManager.Singleton;
+ public NetworkManager NetworkManager => NetworkManagerOwner ? NetworkManagerOwner : NetworkManager.Singleton;
357
358
359
/// Useful to know if we should or should not send a message
0 commit comments