Sprite Manager 2 - Change Texture of a gameObject


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.


You could change the main material's texture:

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