using UnityEngine; using System.Collections; public class BlendModeUtils : MonoBehaviour { public enum Mode { Opaque, Cutout, Fade, Transparent, } public static void SetBlendMode(Material material, Mode blendMode) { switch (blendMode) { case Mode.Opaque: material.SetOverrideTag("RenderType", ""); material.SetInt("_SrcBlend", (int)UnityEngine.Rendering.BlendMode.One); material.SetInt("_DstBlend", (