diff --git a/Assets/Mirror/Runtime/NetworkReader.cs b/Assets/Mirror/Runtime/NetworkReader.cs index 81b1f239a..164b8e78c 100644 --- a/Assets/Mirror/Runtime/NetworkReader.cs +++ b/Assets/Mirror/Runtime/NetworkReader.cs @@ -369,5 +369,10 @@ public static Uri ReadUri(this NetworkReader reader) { return new Uri(reader.ReadString()); } + + public static void ReadMessage(this NetworkReader reader, T msg) where T : IMessageBase + { + msg.Deserialize(reader); + } } }