- Home /
How to find and manipulate a line on a mesh?
In Unity I currently have a script that allows me to "grab" a vertex, move it, and then update the mesh accordingly. How would I grab a line (which is basically grabbing two vertices I think) and move it?
I have read the manual (the scripting reference on Unity's site) but I can't really seem to figure out how to go about doing it. I got a lot of help with the initial script that lets me grab and move a vertex but I, unfortunately, am in need of guidance on how to extend its functionality to do what I described above.
For reference here are how things currently are working. Here is the functionality I'd like to add. I want to be able to grab the line (or basically the 2 vertices at once) and move it similar to how I did with just the single vertex before.
So how would I go about doing this? Also for the sake of keeping my project stable, I'm using Unity 5.3.2f1 but converting new to old code shouldn't be that big of a deal (or so I hope). Also I'mn doing this all at runtime.
Your answer
Follow this Question
Related Questions
When meshes are loaded ? 1 Answer
No Mesh Render, No GameObject after building game. 1 Answer
How do i replace a Mesh Filter?? 1 Answer
Merging meshes 0 Answers
How to manipulate Project Tango's dynamic generated meshes 0 Answers