Unity create Material on the fly - https://gist.github.com/iwanPlays/04d...
Incomplete:
Material mat = new Material(Shader.Find("Standard"));
mat.SetColor("_Color", new Color(1,0,0,.5f));
mat.SetFloat("_Mode", 3);
mat.SetInt("_SrcBlend", (int)UnityEngine.Rendering.BlendMode.SrcAlpha);
mat.SetInt("_DstBlend", (int)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
mat.EnableKeyword("_ALPHABLEND_ON");
mat.renderQueue = 3000;
//mat.SetInt("_ZWrite", 0);
//mat.DisableKeyword("_ALPHATEST_ON");
//mat.DisableKeyword("_ALPHAPREMULTIPLY_ON");
transparent material at runtime in player, via c# script api https://answers.unity.com/questions/9...
Watch video Create Transparent Material at Runtime in Unity - Change Standard Mode with C# Script API online without registration, duration hours minute second in high quality. This video was added by user iwanMods 10 May 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 4,161 once and liked it 55 people.