Skip to content

Commit 8cfaf1a

Browse files
fix: PVP-301-1
Assuring that only when either physics module is present will it define the local hasGhost variable.
1 parent a920e41 commit 8cfaf1a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

com.unity.netcode.gameobjects/Editor/NetworkTransformEditor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ private void DisplayNetworkTransformProperties()
124124
var hasGhost = m_NetworkObject.HasGhost;
125125
SetGUIActive();
126126
#else
127+
#if COM_UNITY_MODULES_PHYSICS || COM_UNITY_MODULES_PHYSICS2D
127128
var hasGhost = false;
129+
#endif
128130
#endif
129131

130132
EditorGUILayout.LabelField("Axis to Synchronize", EditorStyles.boldLabel);

0 commit comments

Comments
 (0)