mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
[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:
parent
40e69c9164
commit
3e55e5396e
@ -311,7 +311,7 @@ namespace Spine.Unity {
|
|||||||
if (!Application.isPlaying) {
|
if (!Application.isPlaying) {
|
||||||
string errorMessage = null;
|
string errorMessage = null;
|
||||||
if (MaterialChecks.IsMaterialSetupProblematic(this, ref errorMessage))
|
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
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user