Create Transparent Material at Runtime in Unity - Change Standard Mode with C# Script API @iwanMods
Create Transparent Material at Runtime in Unity - Change Standard Mode with C# Script API  @iwanMods
Uploaded May 2020 | Updated September 2026, 1 week ago
Unity create Material on the fly - gist.github.com/iwanPlays/04d399de55a98475d906103779ba9ff3
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 answers.unity.com/questions/999594/change-material-rendering-mode-but-dont-update-mat.html
Create Transparent Material at Runtime in Unity - Change Standard Mode with C# Script APIHow to Download and Install Desktop Goose! [New method in description]How to Decompile .RPYC & Mod RenPy Games (Story/Dialogue/Text Modding)Extract 2D/3D/SFX Unity Assets fast & easy from your Unity Game | Asset Studio TutorialHow to open RPA files to get RenPy images, music, voices on macOS (extracting unrpa tutorial)Getting 3D model/scene from NinjaRipper into Blender
iwanMods |

Create Transparent Material at Runtime in Unity - Change Standard Mode with C# Script API

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER