Painting on objects at runtime/in editor

Hey guys! Could someone point me in right direction on how to paint on meshes at runtime, or just in editor? I would love some example too, because I am bit bad at understanding single sentenced answers.

– David

If you want to paint on meshes (or in other words modify the texture of the mesh’s material), you’ll need to learn to use SetPixels.

http://unity3d.com/support/documentation/ScriptReference/Texture2D.SetPixels.html

Here’s a good forum post where folks are talking about how to paint meshes: http://forum.unity3d.com/threads/24838-Painting-Drawing-on-mesh-terrain