diff --git a/Source/MaterialDef.cs b/Source/MaterialDef.cs index 5268adb..f451df4 100644 --- a/Source/MaterialDef.cs +++ b/Source/MaterialDef.cs @@ -36,7 +36,7 @@ public static void Load() var property = node.GetValue("property"); if (string.IsNullOrEmpty(shader) || string.IsNullOrEmpty(property)) { - Debug.Log($"[Shabby]: invalid shader normal map property specification {shader} = {property}"); + Debug.Log($"[Shabby] invalid shader normal map property specification {shader} = {property}"); } else { normalMapProperties[shader] = property; } @@ -77,7 +77,7 @@ public MaterialDef(ConfigNode node) if (shaderName != null) { shader = Shabby.FindShader(shaderName); if (shader == null) { - Debug.LogError($"[Shabby]: failed to find shader {shaderName}"); + Debug.LogError($"[Shabby][MaterialDef {name}] failed to find shader {shaderName}"); } } @@ -97,7 +97,7 @@ public MaterialDef(ConfigNode node) AccessTools.MethodDelegate>( AccessTools.DeclaredMethod(typeof(ConfigNode), "ReadValue")); - static Dictionary LoadDictionary(ConfigNode node, Func parser = null) + Dictionary LoadDictionary(ConfigNode node, Func parser = null) { var items = new Dictionary(); if (node == null) return items; @@ -107,7 +107,7 @@ static Dictionary LoadDictionary(ConfigNode node, Func 0 && targetTransforms.Count > 0) { - Debug.LogError($"[Shabby]: material replacement {defName} may not specify both materials and transforms"); + Debug.LogError($"[Shabby] material replacement {defName} may not specify both materials and transforms"); targetTransforms.Clear(); }