Skip to content

Commit 1dd4bd2

Browse files
fix
Issue with detecting unified ghost mode.
1 parent d1f28b5 commit 1dd4bd2

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class NetworkObjectEditor : UnityEditor.Editor
2020
private bool m_Initialized;
2121
private NetworkObject m_NetworkObject;
2222
private bool m_ShowObservers;
23-
23+
2424
private static readonly string[] k_HiddenFields = { "m_Script" };
2525

2626
private void Initialize()
@@ -32,6 +32,9 @@ private void Initialize()
3232

3333
m_Initialized = true;
3434
m_NetworkObject = (NetworkObject)target;
35+
#if UNIFIED_NETCODE
36+
m_NetworkObject.UnifiedValidation();
37+
#endif
3538
}
3639

3740
/// <inheritdoc/>

com.unity.netcode.gameobjects/Editor/Unity.Netcode.Editor.asmdef

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"Unity.Services.Relay",
88
"Unity.Networking.Transport",
99
"Unity.Services.Core",
10-
"Unity.Services.Authentication"
10+
"Unity.Services.Authentication",
11+
"Unity.NetCode"
1112
],
1213
"includePlatforms": [
1314
"Editor"
@@ -48,6 +49,16 @@
4849
"name": "com.unity.services.multiplayer",
4950
"expression": "0.2.0",
5051
"define": "MULTIPLAYER_SERVICES_SDK_INSTALLED"
52+
},
53+
{
54+
"name": "com.unity.netcode",
55+
"expression": "1.10.1",
56+
"define": "UNIFIED_NETCODE"
57+
},
58+
{
59+
"name": "com.unity.multiplayer.playmode",
60+
"expression": "0.1.0",
61+
"define": "UNITY_MULTIPLAYER_PLAYMODE"
5162
}
5263
],
5364
"noEngineReferences": false

0 commit comments

Comments
 (0)