API Reference¶
MeshPainter¶
Main runtime manager responsible for raycasting and painting.
Key Methods¶
void TryPaintAtScreenPosition(Vector2 screenPos);
void SaveCurrentPaint();
void LoadCurrentPaint();
MeshPaintable CurrentPaintable { get; }
MeshPaintable¶
Manages a per-object paint RenderTexture.
Properties¶
RenderTexture PaintTexture;
void EnsureInitialized();
BrushSettings¶
Defines brush behavior.
| Field | Description |
|---|---|
size |
UV radius |
strength |
Paint opacity |
hardness |
Edge softness |
color |
Brush color |
mode |
Paint / Erase / Mask |
PaintInputHandler¶
Connects UI controls (buttons, sliders, color pickers) to the MeshPainter system.
Example Methods¶
public void SetBrushMode(int modeIndex);
public void SetBrushSize(float value);
public void SetBrushStrength(float value);
public void SetBrushHardness(float value);
public void PickColor(Color color);