Руководство по системе Drag & Drop в Unity [Mobile & Desktop]
Автор: Dev Leonardo
Загружено: 2021-01-10
Просмотров: 38766
Описание:
In today's video, we're going to set up a simple Drag & Drop system, that works on both Mobile (Android and iOS) and Desktop and allows you to have multiple draggable items on the screen.
This tutorial will cover the first part and we'll be able to drag and drop an item wherever we like. I'm already working on the second part where we're gonna add much more control after a drop:
1) Snapping inside another item if the drop is valid
2) Going to the starting position if the drop is not valid
3) Avoiding overlapping items by repositioning in the closest valid position
Feel free to subscribe if you're interested in the second part!
_______________________________
You can also follow me on the other platforms:
Twitter: / balastrong
TikTok: / balastrong
Instagram: / devbalastrong
dev.to: https://dev.to/balastrong
GitHub: https://github.com/Balastrong
_______________________________
TIMESTAMPS
0:00 - Introduction
0:48 - Draggable setup
1:19 - Drag Controller: Variables
2:00 - Drag Controller: Structure implementation
4:38 - Drag Controller: Core methods
5:45 - Final demo
Повторяем попытку...
![Руководство по системе Drag & Drop в Unity [Mobile & Desktop]](https://ricktube.ru/thumbnail/FdxvTcHJiA8/hq720.jpg)
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: