# Procedural mesh component editable via mouse dragging

**URL:** <https://forums.unrealengine.com/t/procedural-mesh-component-editable-via-mouse-dragging/126505>\
**Category:** World Creation\
**Tags:** unreal-engine, procedural\
**Created:** [May 22, 2019, 8:22pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-editable-via-mouse-dragging/126505 "2019-05-22T20:22:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_faad077a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_faad077a](https://forums.unrealengine.com/u/anonymous_user_faad077a)\
**Post date:** [May 22, 2019, 8:22pm UTC](https://forums.unrealengine.com/t/procedural-mesh-component-editable-via-mouse-dragging/126505/1 "2019-05-22T20:22:00Z")

</div>

Hi all,

I hope this is not a clear repetition of other threads… If so, I am sorry: I was not able to find it anywhere.

I would like to generate “procedurally” and only using C++ code a cube on the scene, and be able to pick and drag any vertex of the cube. The mesh should rebuild into a “cuboid”, or something like that. I started by constructing a simple actor with a RootComponent of type UProceduralMeshComponent consisting of a simple triangle mesh, following this short tutorial . Is this a fair choice?

My key question, in order to understand the cuboid case, is: how can I pick and drag, using the mouse, a vertex of the triangle mesh and move it around?

I was thinking about having 3 actors (with no meshes), each one corresponding to a vertex. They can be moved around the scene (I think) and I can constatly ask for their position and build the triangle mesh. This seems awful to me. Any better idea?

Thanks,
