UV Mask Painter
Paint crisp UV masks in the Scene view. Includes an Editor Tool with Paint/Erase/Smooth/Fill, per-channel R/G/B/A, and one-click PNG export. Create Mask Assets in seconds (R/RG/RGBA, linear/sRGB toggle, default values) and paint on any mesh with a MeshCollider. Editor-only; perfect for material blending, decals, wetness/snow/damage, and more.Key features
In-scene painting: Start/Stop from the Mask Painter window.
Brush: Radius/Strength/Hardness; Ctrl+Wheel radius, Shift+Wheel strength; Q/E size; 1–4 = tools.
Channels: Target R/G/B/A; Clear/Invert per channel.
Mask assets: Set size/channels/linear-sRGB/defaults; auto formats R8 / RG16 / RGBA32.
Live preview: Occlusion-aware rings; shows radius/strength/hardness.
Performance: CPU dirty-region uploads (~30 Hz).
Export: From the window or MaskAsset inspector to PNG.Typical uses
Material blending (snow/wetness/dirt), decals/wear, detail/reveal/height/edge effects—assign the resulting Texture2D to any shader in Built-in/URP/HDRP.Workflow (3 steps)
Add MeshCollider + MaskPaintable to the target mesh.
Create Mask Asset, pick size/channels/defaults, assign on MaskPaintable.
Open Mask Painter Window, choose Tool/Channel/Brush, Start Painting; export PNG anytime.What’s included
Windows: Mask Painter Window, Create Mask Asset (with preview & PNG export).
MaskPainterTool (EditorTool with live preview & shortcuts).
Components/inspectors: MaskPaintable, MaskAsset (preview/extract).Requirements & limits
MeshCollider required (uses RaycastHit.textureCoord). Editor-only.
Valid UVs.
No per-stroke Undo yet (Undo for actions like Clear/Invert).Menus & shortcuts
Tools → Mask Painter → Mask Painter Window / Create Mask Asset.
Ctrl+Wheel radius, Shift+Wheel strength, Q/E size, 1–4 tools.Kaynaklar