You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// // Upon instantiation it will always register itself as a Ghost that is pending NGO spawn.
3604
-
3605
-
// // Non-Authority:
3606
-
// // - If registered prior to the CreateObjectMessage, then upon receiving the CreateObjectMessag it will be processed immediately using this instance.
3607
-
// // - If registered after receiving the CreateObjectMessage, then upon registering it will also process any deferred CreateObjectMessages
3608
-
// // If this happens prior to receiving the is received,
3609
-
// // Authority:
3610
-
// // Upon spawning locally, this entry is removed from the ghost pending spawn table.
3611
-
3612
-
3613
-
3614
-
//}
3615
-
//else if (!NetworkManager.IsServer)
3616
-
//{
3617
-
// StartCoroutine(WaitForGhostData());
3618
-
//}
3619
-
//else
3620
-
//{
3621
-
// Debug.LogError($"[{name}] Failed to get ghost instance or GhostId is zero!");
3622
-
//}
3623
3573
}
3624
3574
}
3625
3575
3626
3576
privatevoidRegisterGhostBridge()
3627
3577
{
3628
-
Debug.Log($"[{nameof(NetworkObject)}][{nameof(NetworkObjectId)}] NetworkObjectBridge notified instance exists with assigned ID of: {NetworkObjectBridge.NetworkObjectId.Value}");
3578
+
if(NetworkManager.LogLevel==LogLevel.Developer)
3579
+
{
3580
+
Debug.Log($"[{nameof(NetworkObject)}][{nameof(NetworkObjectId)}] NetworkObjectBridge notified instance exists with assigned ID of: {NetworkObjectBridge.NetworkObjectId.Value}");
Debug.Log($"[{nameof(RegisterGhostPendingSpawn)}] Registering {networkObject.name} with a {nameof(NetworkObject.NetworkObjectId)} of {networkObjectId}.");
39
+
if(NetworkManager.LogLevel==LogLevel.Developer)
40
+
{
41
+
Debug.Log($"[{nameof(RegisterGhostPendingSpawn)}] Registering {networkObject.name} with a {nameof(NetworkObject.NetworkObjectId)} of {networkObjectId}.");
0 commit comments