- Home /
Question by
mbrmj · Oct 08, 2020 at 09:03 PM ·
unlit transparent
Changing Alpha Value for URP Unlit Objects has no Effect,Changing Alpha Value for Unlit Objects has no Effect
Hi,
I have an object with shader Universal Render Pipeline/Unlit. Surface type is set to Transparent. I want to fade this object in the script. I used the following code which works well on Lit | Simple Lit shaders but did not work for Unlit:
Renderer renderer = gameObject.GetComponent<Renderer>();
renderer.material.color = new Color(255,255,255,0);
Is this a bug? Any help is appreciated. URP v7.3.1 | Unity 2019.3.13f1 Thanks.
Comment
Your answer
Follow this Question
Related Questions
Android shader (transparency) problem with 3.4 1 Answer
Unlit transparent shader render order issue 1 Answer
Unlit Transparent Shader 0 Answers
Unlit/Transparent Shader code. 2 Answers