You should have mentioned that those are Canvases, not just images. Probably that was the problem of the guy in the comments below.
@nathanaelbryan312411 сағат бұрын
Does this work with touch if doing mobile?
@MajinBuu45 Жыл бұрын
Thanks for this video
@gamoe Жыл бұрын
thanks you
@MRX-eb3gz6 ай бұрын
if this code not working for you, make sure to add the script to the image objects you want to drag.
@moinmeister2692 Жыл бұрын
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.
@Luluskuy Жыл бұрын
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?
@moinmeister2692 Жыл бұрын
@@Luluskuy Thank you
@Duros3609 ай бұрын
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
@madisonheynen3507 ай бұрын
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
@Duros3607 ай бұрын
@@madisonheynen350 nope :(
@matthewrevell27067 ай бұрын
There is not solution on the internet currently for this. Please let us know if you find one.
@user-uh5rj8gr2e5 ай бұрын
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.
@user-uh5rj8gr2e5 ай бұрын
@@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.
@lpasgsni522 Жыл бұрын
Sorry, man, it does nor work
@SoloGameDev Жыл бұрын
Why? What is the problem?
@lpasgsni522 Жыл бұрын
@@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!
@user-uh5rj8gr2e5 ай бұрын
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.
@user-uh5rj8gr2e5 ай бұрын
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.