How can I dynamically change material during runtime?

When my game is in play, I need to be able to swap out textures or material (the player transform his suit from green to yellow) when someone hits the spacebar.

How can I do this during game play?

Thanks in advance!

renderer.material

or

material.sharedMaterial

:slight_smile: