Unity Drag and Drop 3D - Easy Tutorial (2023)

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ย. 2024
  • Learn how to quickly drag and drop 3D objects in Unity. Enjoy watching.
    💙Subscribe to My Channel: www.youtube.com...
    ❤️Join My Channel to Support Me: / sologamedev
    ●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

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

  • @user-ig6tr2en3s
    @user-ig6tr2en3s ปีที่แล้ว +7

    Thank you for learning well.
    I am writing this because I have a question.
    1. If you want to make the object to be dragged only move in the X-axis direction based on the Z-axis.
    2. I want to make it impossible to move forward in that direction if I collide with an object such as a wall while moving in the X-axis. How can I fix where in the script at this time?

  • @iwoMalki
    @iwoMalki 3 หลายเดือนก่อน

    Great work mate! This way worked for me. Tried other videos and had some crazy ass results!

    • @SoloGameDev
      @SoloGameDev  3 หลายเดือนก่อน

      Thanks :)

  • @ghod2114
    @ghod2114 2 หลายเดือนก่อน

    This is awesome. Thank you, my man.

  • @jaimetheone9150
    @jaimetheone9150 4 หลายเดือนก่อน +1

    I finally made it work, my problem was with the damn camera tag.
    I was getting the error: "NullReferenceException: Object reference not set to an instance of an object".
    After reading what Camera.main does in Visual Studio, it says it connects to a camera tagged as "MainCamera". So I went to my camera and the tag was already there, I selected it and it worked!

  • @boss.do.balaio478
    @boss.do.balaio478 7 หลายเดือนก่อน

    Thank you so much! I researched a lot for this!

  • @maryverson
    @maryverson 3 หลายเดือนก่อน

    thank you for an informative tutorial (:

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

    Great Tutorial

  • @adi_gupta3897
    @adi_gupta3897 11 หลายเดือนก่อน +1

    Great tutorial 🤝what if I want to move the object only in X and Z direction I want to restrict the objects upward and downward motion. Can you please make a tutorial on this? Thanks in advance

    • @salty3567
      @salty3567 11 หลายเดือนก่อน +1

      just use constraints in the inspector window on the rigidbody

  • @ChristianHernandez-i8y
    @ChristianHernandez-i8y หลายเดือนก่อน

    wont work, it's not letting me pick up the object

  • @hieptranngoc2584
    @hieptranngoc2584 9 หลายเดือนก่อน

    work perfect thanks

    • @SoloGameDev
      @SoloGameDev  8 หลายเดือนก่อน

      Welcome 👍

  • @hazelyokouji2005
    @hazelyokouji2005 ปีที่แล้ว +3

    works for mobile too right?

  • @gamingstudios-lv2jp
    @gamingstudios-lv2jp ปีที่แล้ว +1

    bro after publishing my game on playstore ( the game which contains admob sdk ) get crashed in android 12 but working in all other android devices upto android 11
    please help me bro

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

    HAHA how did this pop up at the right moment when i need it

  • @rafaelcordobairibarren4894
    @rafaelcordobairibarren4894 10 หลายเดือนก่อน

    Hi can you tell how to make funfair ride and you control it

  • @666j1
    @666j1 ปีที่แล้ว +6

    why didn't you put the code in the description?

    • @developer2
      @developer2 ปีที่แล้ว +5

      because it's a 2 minute video?

    • @reggieisnotadog4841
      @reggieisnotadog4841 11 หลายเดือนก่อน

      It's three lines of code lol

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

    Yes it works but it collides through the floor. How can we fix it?

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

      remove rigidbody component if you don't want to use physics(floating effect) if thats what you want to achieve

    • @damislav
      @damislav 3 หลายเดือนก่อน

      in rigidbody in collision detection add continouos dynamic

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

    it works only in new input system or it doesn't matter

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

    Quanto você cobraria para fazer a base de um jogo MMORPG 3d estilo tíbia na unity?

  • @Matyzas
    @Matyzas 3 หลายเดือนก่อน

    i wont script

  • @Cauthon007
    @Cauthon007 3 หลายเดือนก่อน

    i need this for godot lol

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

    You are using Unity 2020 version, yet the title says 2022 and the video was posted in 2023. why?

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

      that means it still works in 2023. He just updated the title so people know it is not outdated.