ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
Unity Drag and Drop 2D - Easy Tutorial
ฝัง
- เผยแพร่เมื่อ 16 ส.ค. 2024
- Learn how to quickly drag and drop 2D objects in Unity. Enjoy watching.
❤️Join My Channel to Support Me: / sologamedev
💙Subscribe to My Channel: www.youtube.com...
●For Unity AdMob Tutorial - Easy Integration: • Unity AdMob Tutorial -...
●For Unity Multi-Language System(Localization): • Unity Multi-Language S...
●For Unity Loading Screen - Easy Tutorial : • Unity Loading Screen -...
Hi from Solo Game Dev. I am a game developer. On this channel, I create easy to learn game development tutorials and develop games with Unity and the other game engines. These tutorials and games also include multiplayer games. In general, I create content related to game development, game design and games.
I also actively respond to comments and feedback so don't be afraid to let me know what you think, or recommend or request a specific video!
Follow and enjoy unique content!
You can follow me on Social Media and send your questions and requests from there!
TWITTER: / sologame_dev
INSTAGRAM: / solo.game.dev
#UnityDragAndDrop #Unity
You should have mentioned that those are Canvases, not just images. Probably that was the problem of the guy in the comments below.
Thanks for this video
if this code not working for you, make sure to add the script to the image objects you want to drag.
thanks you
for some reason, whenever I try to use codes for drag and drop they *never* seem to work right. When I use the UI and EventSystems using IDragHandler (etc) the code doesn't do anything, the object doesn't do anything, and I copied this code word for word :S
3rd video today that doesn't seem to work, so it must be me, or a setting i have or something :S
Did you ever solve this problem? I'm going through the same thing right now. No tutorial is working for me, it just doesn't work
@@madisonheynen350 nope :(
There is not solution on the internet currently for this. Please let us know if you find one.
If the Image is a child element of the Canvas itself, then everything works, but if it is a child, for example, of some panel inside the Canvas, then it simply is not read.
@@madisonheynen350 If the Image is a child element of the Canvas itself, then everything works, but if it is a child, for example, of some panel inside the Canvas, then it simply is not read.
Hey, I wanted to know what extensions you use on visual studio code for c# that you get suggestions, what library you have to import.
Hi, i don't know if this helps, but I get suggestions when I use visual studio 2017. But I don't get suggestion when use 2019 version. So.. maybe try to use visual studio 2017?
@@Luluskuy Thank you
Sorry, man, it does nor work
Why? What is the problem?
@@SoloGameDev Dear author! Thank you for responding to my comment. I did not manage to repeat step by step what you outlined in your instructional video. It seems to me that the reason is that your "items" have some properties that I do not see and therefore cannot repeat. I tried instead of "items" to use simple sprites - a triangle and a square, but drag-and-drop and recoloring objects do not work with them. Best regards!
If the Image is a child element of the Canvas itself, then everything works, but if it is a child, for example, of some panel inside the Canvas, then it simply is not read.
It is also worth playing with the order of the elements on the Canvas, because the lower the element, the “higher” it is located (closer to the camera). So something may be blocking the reading.
𝓅𝓇𝑜𝓂𝑜𝓈𝓂