CopyPropertiesFromMaterial

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.

This does sound like a bug and I can’t find any existing trace of it in our bug database. It would be great if you could file a report for it (menu: Help > Report A Problem), ideally along with the asset bundle that displays the problem.