UnityTexturePainter
Simple example of painting straight onto a mesh with a shader
Install / Use
/learn @SoylentGraham/UnityTexturePainterREADME
UnityTexturePainter
Simple example of painting straight onto a mesh with a shader.
Video (some genius used the first empty frame as the thumbnail)
![]()
- Attach
PaintMe.csto any mesh with aCollider - When the user clicks, a raycast will try and find any object with
PaintAt()on it - When this is called we grab the UV's where we hit (note: some untextured objects will only have
0,0for a uv!) and start painting - The first time, a
RenderTextureis setup, copies the texture from the material on us (or clears a colour if no texture) and assigns itself to the material - then (and on subsequent hits) it will set a point to draw a circle at on a shader, then do a blit onto the existing texture
Not the MOST effecient way, but a thousand times better than using SetPixel. And now you can do shapes, masks, gradients, wobbly effects.
Enjoy!
Related Skills
node-connect
335.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
335.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.7kCommit, push, and open a PR
