A simple and cheap way to draw LineRenderers and add EdgeCollider2Ds to them using the mouse (or touch if on mobile). Highly expandable and versatile gameplay mechanic.
Full code here. Updated with a few extra features: https://www.armandoesstuff.com/tutori...
Created for my upcoming game Hexagone: https://play.google.com/store/apps/de...
***
Thanks for watching and don't forget to subscribe and join the subreddit/discord.
Also, be sure to check out Above the Stars!
https://www.armandoesstuff.com/produc...
Website: https://www.armandoesstuff.com
Reddit: / armandoesstuff
Discord: / discord
Twitch: / armandoesstuff
Twitter: / armandoesstuff
Tumblr: https://www.tumblr.com/blog/armandoes...
Facebook: / armandoesstuff
#gamedev #tutorial #unity
***
00:00 Intro
00:34 Create Scene
01:14 Variables
01:46 Mouse State
03:16 Touch Start
04:43 Touch Drag
06:04 Above the Stars
06:20 Touch End
08:47 Outro
Смотрите видео Drawing Lines with Mouse or Touch in Unity - LineRenderer and EdgeCollider2D онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь ArmanDoesStuff 06 Ноябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 303 раз и оно понравилось 9 людям.