- Home /
Question by
Fuseques · Mar 19, 2020 at 10:27 AM ·
assetbundlematerialstextures
Material texture properties disappear in asset bundle
I am using a certain material that has a few texture properties, including a "_MainTex" that is set to Null. when using that material normally, all works well, however when I load it from an asset bundle and set it as a material for an Image, I get an error "Material doesn't have a texture property '_MainTex'". a quick check shows that indeed the "_MainTex" property disappeared from the texture property array. everything still works the same, but still I would like to get rid of that error as it fails some tests and might cause unexpected behaviour in the future. So far I've been looking for ways to either catch that error, or re-add the material a null _MainTex by code, couldn't get any of these done. any advice would be appreciated.
Comment