diff --git a/com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs b/com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs
index cf207cc725..1340117f36 100644
--- a/com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs
+++ b/com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs
@@ -356,18 +356,9 @@ private struct PacketLossCache
public float PacketLoss;
};
- ///
- /// TODO-FIXME:
- /// Multiplayer Tools subscribes to this event and does not have the EntityId udpate.
- ///
-#if FIXED
#if UNITY_6000_2_OR_NEWER
- internal static event Action TransportInitialized;
- internal static event Action TransportDisposed;
-#else
- internal static event Action TransportInitialized;
- internal static event Action TransportDisposed;
-#endif
+ internal static event Action OnDriverInitialized;
+ internal static event Action OnDisposingDriver;
#endif
internal static event Action TransportInitialized;
internal static event Action TransportDisposed;
@@ -449,13 +440,8 @@ private void InitDriver()
out m_ReliableSequencedPipeline);
#if UNITY_6000_2_OR_NEWER
var entityId = GetEntityId();
-#if UNITY_6000_3_0A6_OR_HIGHER
- // TODO-FIXME: Since multiplayer tools subscribes to this and we have to validate against any package that
- // might use this action, we have to cast it down temporarily to avoid being blocked from getting these fixes in place.
- TransportInitialized?.Invoke((int)entityId.GetRawData(), m_Driver);
-#else
- TransportInitialized?.Invoke(entityId, m_Driver);
-#endif
+ OnDriverInitialized?.Invoke(entityId, m_Driver);
+ TransportInitialized?.Invoke(entityId.GetHashCode(), m_Driver);
#else
TransportInitialized?.Invoke(GetInstanceID(), m_Driver);
#endif
@@ -477,14 +463,8 @@ private void DisposeInternals()
#if UNITY_6000_2_OR_NEWER
var entityId = GetEntityId();
-#if UNITY_6000_3_0A6_OR_HIGHER
- // TODO-FIXME: Since multiplayer tools subscribes to this and we have to validate against any package that
- // might use this action, we have to cast it down temporarily to avoid being blocked from getting these fixes in place.
- TransportDisposed?.Invoke((int)entityId.GetRawData());
-#else
- TransportDisposed?.Invoke(entityId, m_Driver);
-#endif
-
+ OnDisposingDriver?.Invoke(entityId);
+ TransportDisposed?.Invoke(entityId.GetHashCode());
#else
TransportDisposed?.Invoke(GetInstanceID());
#endif
diff --git a/com.unity.netcode.gameobjects/Runtime/Unity.Netcode.Runtime.asmdef b/com.unity.netcode.gameobjects/Runtime/Unity.Netcode.Runtime.asmdef
index e76f8e8360..c43f102051 100644
--- a/com.unity.netcode.gameobjects/Runtime/Unity.Netcode.Runtime.asmdef
+++ b/com.unity.netcode.gameobjects/Runtime/Unity.Netcode.Runtime.asmdef
@@ -84,10 +84,10 @@
"define": "SCENE_MANAGEMENT_SCENE_HANDLE_NO_INT_CONVERSION"
},
{
- "name": "Unity",
- "expression": "6000.5.0a1",
- "define": "SCENE_MANAGEMENT_SCENE_HANDLE_MUST_USE_ULONG"
+ "name": "Unity",
+ "expression": "6000.5.0a1",
+ "define": "SCENE_MANAGEMENT_SCENE_HANDLE_MUST_USE_ULONG"
}
],
"noEngineReferences": false
-}
+}
\ No newline at end of file