MD Package Technical & APi Documentation
MDG_MeshPaintingSource
Namespace: MDPackage.Geometry
Mesh Painting source class. Declare this class in your code to access mesh paiting solution on your own.
Suitable for any platform.
Read more here (Online documentation slide)
Properties
public bool IsPainting { get; }
public PaintingMeshType SelectedMeshType { get; }
Events
public event Action OnMeshPaintingBegin;
public event Action OnMeshPaintingUpdate;
public event Action<MeshFilter> OnMeshPaintingEnd;
Public Methods
// Begin mesh paiting by the given parameters (should be called once)
public void PaintingBegin(PaintingMeshType meshType,
   string meshName,
   Material objectMaterial,
   MDG_MeshPaintingBrushData brushData,
   string objectName = "PaintedObject")
   
// Updated mesh painting over a time
public void PaintingUpdate(MDG_MeshPaintingBrushData brushData)

// Terminate painting once
public MeshFilter PaintingTerminate(bool destroyCurrentPaintingMesh = true)

// End mesh painting once
public MeshFilter PaintingEnd()