[unity] Minor: improved warning message for incorrect material setup, added object reference so that you can jump to the respective object that caused the problem.

This commit is contained in:
Harald Csaszar 2019-09-03 14:52:12 +02:00
parent 40e69c9164
commit 3e55e5396e

View File

@ -311,7 +311,7 @@ namespace Spine.Unity {
if (!Application.isPlaying) {
string errorMessage = null;
if (MaterialChecks.IsMaterialSetupProblematic(this, ref errorMessage))
Debug.LogWarningFormat("Problematic material setup at {0}: {1}", this.name, errorMessage);
Debug.LogWarningFormat(this, "Problematic material setup at {0}: {1}", this.name, errorMessage);
}
#endif
}