Change Texture / Material during Run time ?

How can I change a texture during Run time ? (or if not possible, Material).

By scripting: http://docs.unity3d.com/Documentation/ScriptReference/Material.SetTexture.html
Or possibly by animating.