Sprite Manager 2 - Change Texture of a gameObject

Hi,

is it possible to change the texture of a gameobject in runtime?

For example in a level selection screen, that a locked level changes its appearence, when it gets unlocked.

Thanks

You could change the main material's texture:

var texture : Texture;
renderer.material.mainTexture = texture;