How can we show a sprite using a mesh component that supports transparency?

How can I change the tex0 property and replace it with another PNG image at runtime by script?