Drag and Drop with New Input system! ( Touch and Mouse )

Game Dev Geeks
Game Dev Geeks
9.2 هزار بار بازدید - 2 سال پیش - Download the code from here
Download the code from here https://gist.github.com/Mohammad9760/...

in this video you'll learn how to use the new input system to drag and drop game objects by dragging the mouse or on touch screen. we setup the input action bindings on the component so you don't have to setup anything, you can just download the code and attach it on objects and you'll be able to drag and drop them.

Subscribe @triplequotes
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
How To Rotate Objects with New Input system Rotate Objects with New Input System ...
Unity Tutorial Playlist Detect Double Clicks in Unity!
Unity VFX Tutorials Realistic Muzzle Flash Effect in 5 Mi...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
time stamps
0:00 intro
0:55 set up
1:28 Input Actions
3:15 get touch / mouse position
4:35 check if clicked on
7:25 drag
10:00 add physics
11:10 demo
2 سال پیش در تاریخ 1401/09/13 منتشر شده است.
9,252 بـار بازدید شده
... بیشتر