Unity Tutorial - Drag & Drop Tutorial #1 [RPGs, Card Games, uGUI]

preview_player
Показать описание
Make sure to SUBSCRIBE so you don't miss a video!
Also, please feel free to ask lots of questions in the comments.

I can be reached at:
Рекомендации по теме
Комментарии
Автор

It is insanely valuable to see problems appear in the middle of work and the process of solving those! Thanks a lot :)

hantaakai
Автор

Sounds like you're saying "Dragon Drop". Sounds like some kind of wrestling move.

kevnar
Автор

Quill, thank you very very very much.
I was just about to give up on doing my card game, because i couldn't find anything that was really useful and i was veeeery lost, so i started to lose motivation. But now i found this video and i am finally starting to understand a lot of things and i am as motivated as ever again. So thanks a lot =D

Tocoquinh
Автор

Thanks for not locking your tutorials behind a pay wall. Seriously, it saves me a lot of stress trying to make a complex TCG simulator.

jessierose
Автор

Thanks for this tutorial, you explained it so I could finally understand. I viewed another similar tutorial that did not explain the reason for everything, but in that tutorial, I did learn that you can right-click on "IBeginDragHandler" and choose "Refractor" > "implement interface", and it will create the function for you, which you can position in your code anywhere by pressing the up and down arrows.

TooScoops
Автор

I gotta say I love your 'on the fly trouble shooting', makes one less spoiled when it comes to handling errors :) ty!

johaneriksson
Автор

We really appreciate your effort Quill. Thanks for the tutorials 

fragostafylo
Автор

if anyone's still using this & needs the simple solution to add the offset mentioned at @23:43:

public class Draggable : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler
{
Vector2 offset;

public void OnBeginDrag(PointerEventData eventData)
{
Debug.Log("OnBeginDrag");
offset = transform.position - new Vector3(eventData.position.x, eventData.position.y, 0);
}

public void OnDrag(PointerEventData eventData)
{
Debug.Log("OnDrag");
transform.position = eventData.position + offset;
}

public void OnEndDrag(PointerEventData eventData)
{
Debug.Log("OnEndDrag");
}
}

Turtwiggyyy
Автор

Thanks very much, even six years still usefull!

schizoscope
Автор

Thanks for these videos. They still work. This is going to help me make my card game. Again Thank you.

Gunter_Wolf
Автор

Super quick n helpful. Could you explain a bit more thoroughly how to keep the mouse icon static opposed to it moving to the middle of the object we're trying to drag?

Sumdottycoy
Автор

FYI, a perfect card aspect ratio would be 100x140. Poker cards (and, consequently, Magic cards) are exactly 2.5 by 3.5 inches.

TheKarishi
Автор

Nice tutorial. Just something to keep in mind, layouts (Grid, horizontal, vertical) want to keep a certain vertical or horizontal pixel count which tends not to work well when changing screen resolutions.

terrythomas
Автор

Thanks for keeping this video up. I recently purchased the CCG Kit asset for unity, but the documentation only covers how to use their prefabs / assets.

JokerKizer
Автор

You are god.  I'm working on a microbiology project and this is perfect!

MrFreddieNietzsche
Автор

Thanks a lot . I was searching that Tutorial from great time . You solved my Biggest Problem .

prakashyadav
Автор

Thanks so much for the tutorial, it has been very useful for my project!

NeuraPsycotica
Автор

Still really useful, huge thank's !

DjCtavia
Автор

This video is such a drag...badum diss. Nice video quill, helped me alot :)

axiras
Автор

This guy is on "Drags" :P
j/k thanks for the great tutorial :)

SahkanISR
visit shbcf.ru