As the title says, I’m having an issue where after a saved gameobject is de-serialized it will lose any material/shader effect until I manually expand the material window in the editor.
Is there anything I can call to refresh all the materials?
Are you using the standard shader? If your setting things through code you need to enable the keywords, this is what happens when you expand the material editor.
I’ve taken a look at the Materials reference you linked above but I can’t see what I might call to set this, unless I were to just call any of the set methods?
Are these material assets stored in your project or being created procedurally? If they are created by a script then you need to enable the keywords for the areas that are used, e.g if you add a normal map then you need to enable the keyword _NORMALMAP in the material. If you are unsure you could just go through the material and check if a normal map exists, if so enable keyword, etc.