From df81d607cb887e6d01318099ad02db9021ec9483 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Tue, 3 Sep 2019 14:52:12 +0200 Subject: [PATCH] [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. --- .../Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs index c412c3664..06046dcfa 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs @@ -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 }