ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

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

ความคิดเห็น • 23

  • @kozavr
    @kozavr ปีที่แล้ว +10

    You should have mentioned that those are Canvases, not just images. Probably that was the problem of the guy in the comments below.

  • @MajinBuu45
    @MajinBuu45 ปีที่แล้ว +1

    Thanks for this video

  • @MRX-eb3gz
    @MRX-eb3gz 6 หลายเดือนก่อน

    if this code not working for you, make sure to add the script to the image objects you want to drag.

  • @gamoe
    @gamoe ปีที่แล้ว

    thanks you

  • @Duros360
    @Duros360 9 หลายเดือนก่อน +1

    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

    • @madisonheynen350
      @madisonheynen350 7 หลายเดือนก่อน

      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

    • @Duros360
      @Duros360 7 หลายเดือนก่อน

      @@madisonheynen350 nope :(

    • @matthewrevell2706
      @matthewrevell2706 6 หลายเดือนก่อน +1

      There is not solution on the internet currently for this. Please let us know if you find one.

    • @user-uh5rj8gr2e
      @user-uh5rj8gr2e 5 หลายเดือนก่อน

      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-uh5rj8gr2e
      @user-uh5rj8gr2e 5 หลายเดือนก่อน

      @@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.

  • @moinmeister2692
    @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
      @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
      @moinmeister2692 ปีที่แล้ว

      @@Luluskuy Thank you

  • @lpasgsni522
    @lpasgsni522 ปีที่แล้ว +2

    Sorry, man, it does nor work

    • @SoloGameDev
      @SoloGameDev  ปีที่แล้ว +1

      Why? What is the problem?

    • @lpasgsni522
      @lpasgsni522 ปีที่แล้ว +4

      @@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-uh5rj8gr2e
      @user-uh5rj8gr2e 5 หลายเดือนก่อน

      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-uh5rj8gr2e
      @user-uh5rj8gr2e 5 หลายเดือนก่อน

      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.

  • @gwendolinwild4992
    @gwendolinwild4992 ปีที่แล้ว +1

    𝓅𝓇𝑜𝓂𝑜𝓈𝓂