diff --git a/Runtime/Messaging/BurstWrapper/MessengerWrapper.cs b/Runtime/Messaging/BurstWrapper/MessengerWrapper.cs index 65582ac..6127671 100644 --- a/Runtime/Messaging/BurstWrapper/MessengerWrapper.cs +++ b/Runtime/Messaging/BurstWrapper/MessengerWrapper.cs @@ -10,7 +10,7 @@ public struct MessengerWrapper { internal NativeList data; - public unsafe void Send(T message) where T : unmanaged + public unsafe void Send(T message) where T : unmanaged, IUnmanagedMessage { var size = sizeof(T); var hash = BurstRuntime.GetHashCode64(); @@ -30,7 +30,7 @@ public struct Parallel internal NativeList.ParallelWriter data; [Preserve] - public unsafe void Send(T message) where T : unmanaged + public unsafe void Send(T message) where T : unmanaged, IUnmanagedMessage { var size = sizeof(T); var hash = BurstRuntime.GetHashCode64();