MD Package Technical & APi Documentation
MD_MeshEditorRuntimePullPushGrab
Namespace: MDPackage
MD_MeshEditorRuntimePullPushGrab is a vertex manipulaton tool at runtime using the pull/push/grab style for PC/Mobile.
It requires a target component of type MD_MeshProEditor with generated gameObject points generated on the mesh.
User uses a mouse or a finger to manipulate a selection of generated points in screen space either by pushing them, pulling or grabbing.
Read more here (Online documentation slide)
Properties
// Target camera is required in order to work with screen space coordinates
public Camera TargetCamera { get; set; }

// Runtime editor mode - pull, push or grab
public RuntimeMeshEditorMode CurrentRuntimeMeshEditorMode { get; set; }

// Main brush radius in world space
public float BrushRadius { get; set; }
// Movement intensity of the push/pull or grab
public float MoveIntensity { get; set; }

// Input Hookups - use for your own input handler

// Hookup a custom input for screen space cursor/ point/ touch
public Vector3 InputHook_GenericScreenPosition { get; set; }
// Hookup a generic input for main button down and up
public bool InputHook_GenericButtonDown { get; set; }