3 Home
Schaken edited this page 2025-01-31 16:13:19 -05:00

Cloth Weightmap Tool

once you have a cloth component on a skinnedMeshRednerer, right click it, and select "Add weight helper". Add the texture, then adjust as needed. press "Show Gizmo" to show Gizmos. "Set Vertex Weights" will apply the new settings to each vertice. You can remove this component when done. Not needed in game.

Tutorial Video: https://youtu.be/k6i9wZKfiEg

To Purchase: https://payhip.com/b/lpCnU

API:

  • public Cloth cloth; // Assign the Cloth component
  • public Texture2D gradientTexture; // Assign the gradient texture. make sure it has read/write permissions
  • public float Min = 0; // The minimum value to assign to a vertice using this tool
  • public float Mid = 0.1f; // adjusts the curve point between the min and max.
  • public float Max = 0.9f; // The maximum value to assign to a vertice using this tool
  • public float GizmoSize = 0.01f; // The size of gizmos to represent each vertice
  • public bool DrawGizmo = false; // To show gizmos