#How to reference URP Lit Shader through code?
1 messages · Page 1 of 1 (latest)
Yep thats the shader, then just use the material constructor ans copy all the properties
Wait, maybe just change the mat.shader. that way all the properties should stay the same I think (tho im not sure if all the properties are named the same on both shaders)
Btw what you mean by "non-standard" in this case?
Shaders that built-in tool can’t convert
Like?
Custom shaders duh
Custom effects like water?
whatever shader
How in the world should c# script be able to convert them into lit shaders?
wdym
I think you are currently wasting your time doing the impossible, if it was that easy, unity would obviously have done it already
You clearly didnt. You can replace any shader with lit shader but you for sure cannot convert them to lit shader as lit shader is just one type of shader, it cant do anything other than basic lighting with few properties like emission and stuff. Something like water shader is not gonna be convertable to lit shader
jfc
Why do you keep wasting my time on already solved topic
Here,
Copy the main texture, normal texture, and color from a custom shader that URP doesn't support to the default Lit shader.
That's all
Got it, thats should be somewhat easy
Yes. Cause it's already freaking solved.