mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Read<T>: error message improved
This commit is contained in:
parent
df875a4bc1
commit
3664f26d65
@ -187,7 +187,7 @@ public T Read<T>()
|
||||
Func<NetworkReader, T> readerDelegate = Reader<T>.read;
|
||||
if (readerDelegate == null)
|
||||
{
|
||||
Debug.LogError($"No reader found for {typeof(T)}. Use a type supported by Mirror or define a custom reader");
|
||||
Debug.LogError($"No reader found for {typeof(T)}. Use a type supported by Mirror or define a custom reader extension for {typeof(T)}.");
|
||||
return default;
|
||||
}
|
||||
return readerDelegate(this);
|
||||
|
Loading…
Reference in New Issue
Block a user