I have been loading my assets using assetbundle. But I face a peculiar issue when loading scenes directly from asset bundle, that some of the meshes from scenes are having pink material... even though the material field of mesh renderer contains the material it still show pink rendered material.
One way around this that I found is to re apply material for those meshes after the scene has been loaded and which seems to work for now. But for larger scene this is additional computational cost which I want to get rid of.
So if you can tell me why is it happening in the assetbundle? and how to get rid of it? Otherwise if there is anyway to check whether any mesh has been missing material and is having issue with recompilation of shader?
↧