Skip to content

Advanced Topics


🦴 Painting on Skinned Meshes

Pixit Mesh Painter can paint on SkinnedMeshRenderer components.
Because skinned meshes deform, use BakeMesh() to generate a collider.

SkinnedMeshRenderer smr = GetComponent<SkinnedMeshRenderer>();
Mesh baked = new Mesh();
smr.BakeMesh(baked);
GetComponent<MeshCollider>().sharedMesh = baked;

Run this periodically if the mesh is animated.


💾 Persistent PNG Storage

All saved paint data is stored in:

Assets/PixitMeshPainter/Paints/

Files are named paint_[ObjectName].png.
You can edit or replace them directly in the project folder.


🧰 Undo / Redo (Custom Extension)

Add undo/redo support by saving temporary RenderTexture snapshots.

Graphics.CopyTexture(currentRT, backupRT);

Store recent backups and restore them when needed.


🌍 Multi-Channel Painting

Advanced users can store multiple paint layers in the RGBA channels of a single texture.
Each channel can represent a different effect (wear, dirt, decals, etc.).