- I apply a material to an object. (click and drag, or in renderer component)
- The material applies mostly correct, but renders without Normal map
- I click the material in the asset window, aka select it in the inspector
- Normal map suddenly works and is rendering properly
I have an Editor Script that creates Material assets using the Standard shader. And as described above, I have to click/select each material individually in the asset window else the Normal texture is ignored. This somewhat defeats the purpose of automating the process…
Anyone have an idea on how I can fix this? AssetDatabase.refresh() doesn’t help, surely there’s some way script-wise to deal with it. Please and thank you!