NetworkBehaviour: improved error message

This commit is contained in:
vis2k 2018-12-30 15:56:38 +01:00
parent ce803e1ea1
commit 86c482cf60

View File

@ -44,7 +44,7 @@ public NetworkIdentity netIdentity
m_netIdentity = m_netIdentity ?? GetComponent<NetworkIdentity>();
if (m_netIdentity == null)
{
Debug.LogError("There is no NetworkIdentity on this object. Please add one.");
Debug.LogError("There is no NetworkIdentity on " + name + ". Please add one.");
}
return m_netIdentity;
}