MD Package Technical & APi Documentation
MD_VertexToolUtility
Namespace: MDPackage.Utilities
Vertex tool for advanced functionality with MeshProEditor generated points. Use this tool to weld points, attach meshes etc.
Works only with target gameObjects of type MD_MeshProEditor.
Public Static Methods
// Attach 2 or more meshes - meshes will be combined and will share the same material
public static void V_TOOL_Element_Attach(GameObject attachToGameObject, bool attachChildren = true)
// Clone selected mesh by the certain count, rotation and move offset​​
public static void V_TOOL_Element_Clone(GameObject targetGameObject, int count, Vector3 rotationOffset, Vector3 positionOffset)
// Weld selected points - points will split into one
public static void V_TOOL_Vertex_Weld(Transform weldFrom, Transform weldTo)
// Relax mesh vertices - vertices will be normalized and their offset will be multiplied by the position of their mesh
public static void V_TOOL_Vertex_Relax(MD_MeshProEditor mpeSender)