File tree Expand file tree Collapse file tree
com.unity.netcode.gameobjects/Runtime/Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2109,7 +2109,6 @@ internal static void OnOneTimeTearDown()
21092109 public static OnConnectDelegate OnNetCodeConnect ;
21102110 public static OnDisconnectDelegate OnNetCodeDisconnect ;
21112111
2112- #if UNITY_EDITOR
21132112 // TODO-UNIFIED: For POC only (centralizing)
21142113 public static MPPMCheckInfo MPPMCheck => MPPMCheckInternal ;
21152114 internal static MPPMCheckInfo MPPMCheckInternal = new MPPMCheckInfo ( ) ;
@@ -2120,7 +2119,7 @@ public class MPPMCheckInfo
21202119 public bool HasClientTag ;
21212120 internal void Initialize ( )
21222121 {
2123- #if UNITY_MULTIPLAYER_PLAYMODE
2122+ #if UNITY_MULTIPLAYER_PLAYMODE && UNITY_EDITOR
21242123 Installed = true ;
21252124 var tags = Multiplayer . PlayMode . CurrentPlayer . Tags ;
21262125 foreach ( var tag in tags )
@@ -2139,7 +2138,6 @@ internal void Initialize()
21392138#endif
21402139 }
21412140 }
2142- #endif
21432141#endif
21442142 }
21452143}
Original file line number Diff line number Diff line change @@ -368,7 +368,7 @@ private void CheckForInScenePlaced()
368368 [ HideInInspector ]
369369 [ SerializeField ]
370370 internal bool HadBridge ;
371-
371+ #if UNITY_EDITOR
372372 private void UnifiedValidation ( )
373373 {
374374 NetworkObjectBridge = GetComponent < NetworkObjectBridge > ( ) ;
@@ -396,13 +396,15 @@ private void UnifiedValidation()
396396 }
397397
398398 EditorUtility . SetDirty ( gameObject ) ;
399+
399400 }
400401 else if ( HadBridge && ! HasGhost && ! NetworkObjectBridge )
401402 {
402403 HadBridge = false ;
403404 SynchronizeTransform = true ;
404405 }
405406 }
407+ #endif
406408#endif
407409 /// <summary>
408410 /// Gets the NetworkManager that owns this NetworkObject instance
You can’t perform that action at this time.
0 commit comments