- Home /
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
probably, but it wasn't a ton of information so I wasn't sure it was going to answer $$anonymous$$'s specific question. It was more of a 'is this what you're looking for?' type thing. I'll add it as an answer now.
Answer by Julien-Lynge · Oct 21, 2011 at 10:04 PM
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
Your answer
Follow this Question
Related Questions
Paint textures like on terrain but without terrain? 0 Answers
How to get uvCordinat of raycast hit without mesh collider 1 Answer
Change texture of individual triangle on a mesh? 3 Answers
How to get player's face onto character mesh 1 Answer
How do I add a texture to a cube with different faces? 1 Answer