From 3af4c218c0e70167db23a6303d2af30aff37d2fe Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 20 Aug 2020 23:40:50 -0400 Subject: Removed a bunch of stuff; Changes --- .../Scripts/Editor/TMPro_EditorShaderUtilities.cs | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMPro_EditorShaderUtilities.cs (limited to 'Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMPro_EditorShaderUtilities.cs') diff --git a/Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMPro_EditorShaderUtilities.cs b/Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMPro_EditorShaderUtilities.cs deleted file mode 100644 index 1633a68..0000000 --- a/Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMPro_EditorShaderUtilities.cs +++ /dev/null @@ -1,53 +0,0 @@ -using UnityEngine; -using UnityEditor; -using System.Linq; -using System.Collections; - - -namespace TMPro.EditorUtilities -{ - - public static class EditorShaderUtilities - { - - /// - /// Copy Shader properties from source to destination material. - /// - /// - /// - public static void CopyMaterialProperties(Material source, Material destination) - { - MaterialProperty[] source_prop = MaterialEditor.GetMaterialProperties(new Material[] { source }); - - for (int i = 0; i < source_prop.Length; i++) - { - int property_ID = Shader.PropertyToID(source_prop[i].name); - if (destination.HasProperty(property_ID)) - { - //Debug.Log(source_prop[i].name + " Type:" + ShaderUtil.GetPropertyType(source.shader, i)); - switch (ShaderUtil.GetPropertyType(source.shader, i)) - { - case ShaderUtil.ShaderPropertyType.Color: - destination.SetColor(property_ID, source.GetColor(property_ID)); - break; - case ShaderUtil.ShaderPropertyType.Float: - destination.SetFloat(property_ID, source.GetFloat(property_ID)); - break; - case ShaderUtil.ShaderPropertyType.Range: - destination.SetFloat(property_ID, source.GetFloat(property_ID)); - break; - case ShaderUtil.ShaderPropertyType.TexEnv: - destination.SetTexture(property_ID, source.GetTexture(property_ID)); - break; - case ShaderUtil.ShaderPropertyType.Vector: - destination.SetVector(property_ID, source.GetVector(property_ID)); - break; - } - } - } - - } - - } - -} \ No newline at end of file -- cgit v1.2.3