Graphics, Programming, Unity, Tutorial, Technology.
a new shader is assigned to a material: AssignNewShaderToMaterial. Override it and leave the base call at the top. Check if the new shader is the “MyLit” shader using its name field. If true, call UpdateSurfaceType. In addition, in Unity 2022, material variants will not update correctly unless we