mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix(NetworkIdentity): Improved DisallowChildNetworkIdentities Error Logging
References the offending object so it gets highlighted in the Editor when the error is clicked.
This commit is contained in:
parent
28b1e8b374
commit
8543f1f37d
@ -375,7 +375,7 @@ void DisallowChildNetworkIdentities()
|
|||||||
{
|
{
|
||||||
// always log the next child component so it's easy to fix.
|
// always log the next child component so it's easy to fix.
|
||||||
// if there are multiple, then after removing it'll log the next.
|
// if there are multiple, then after removing it'll log the next.
|
||||||
Debug.LogError($"'{name}' has another NetworkIdentity component on '{identities[1].name}'. There should only be one NetworkIdentity, and it must be on the root object. Please remove the other one.");
|
Debug.LogError($"'{name}' has another NetworkIdentity component on '{identities[1].name}'. There should only be one NetworkIdentity, and it must be on the root object. Please remove the other one.", this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user