Hey Guys,
I have a chunk of code that loads an asset bundle full of materials into my game. When it’s loaded I load a material out of it and use CopyPropertiesFromMaterial to create a copy of it. The copy looks fine in game but in the inspector and through code the mainTex is null. The sphere preview however is correctly mapped.
It looks like a bug to me and I couldn’t find anything about this function in the forums. Not to mention the doc for this function is terrible.