diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/MaterialChecks.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/MaterialChecks.cs index 69fad8f9f..59a03cbc9 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/MaterialChecks.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/MaterialChecks.cs @@ -102,6 +102,10 @@ namespace Spine.Unity { + "a) disable 'CanvasGroup Compatible' at the Material or\n" + "b) enable 'Canvas Group Tint Black' at the SkeletonGraphic component under 'Advanced'.\n" + "You may want to duplicate the 'SkeletonGraphicTintBlack' material and change settings at the duplicate to not affect all instances."; + public static readonly string kCanvasGroupCompatiblePMAVertexMessage = + "\nWarning: 'CanvasGroup Compatible' is enabled at the Material and 'PMA Vertex Colors' is enabled at SkeletonGraphic!\n\nPlease\n" + + "a) disable 'CanvasGroup Compatible' at the Material or\n" + + "b) disable 'PMA Vertex Colors' at the SkeletonGraphic component under 'Advanced'."; public static bool IsMaterialSetupProblematic (SkeletonRenderer renderer, ref string errorMessage) { Material[] materials = renderer.GetComponent().sharedMaterials; @@ -162,6 +166,10 @@ namespace Spine.Unity { isProblematic = true; errorMessage += kCanvasGroupCompatibleDisabledMessage; } + if (settings.pmaVertexColors == true && IsCanvasGroupCompatible(material)) { + isProblematic = true; + errorMessage += kCanvasGroupCompatiblePMAVertexMessage; + } } return isProblematic; } diff --git a/spine-unity/Assets/Spine/package.json b/spine-unity/Assets/Spine/package.json index be89e2659..b596ebe63 100644 --- a/spine-unity/Assets/Spine/package.json +++ b/spine-unity/Assets/Spine/package.json @@ -2,7 +2,7 @@ "name": "com.esotericsoftware.spine.spine-unity", "displayName": "spine-unity Runtime", "description": "This plugin provides the spine-unity runtime core.", - "version": "4.1.16", + "version": "4.1.17", "unity": "2018.3", "author": { "name": "Esoteric Software",