How do I create a rectangle that is drawn from the user’s touch to his release + collider?

Updated on December 11, 2017 in [C] Intermediate
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on December 2, 2017

I want to create a script for my game that draws a thick line from the user’s initial touch to the release, while displaying the line while the user is deciding where to end it. Also, after the line gets drawn, I want the line to be sort of a rectangle with a collider that gets attached when the touch is released. Any idea on how to achieve this result?

  • Liked by
Reply
0 on December 11, 2017

use line render with collider on it…

  • Liked by
Reply
Cancel