Interaction system | Unreal Engine 5 tutorial

Поділитися
Вставка
  • Опубліковано 15 чер 2024
  • How to create an interaction system in Unreal Engine, that you can create quickly and expand it with your further development? You will learn it in this video.
    This system was designed to help you learn how to interact with any object and was intended so you can use it further in your game development journey (you can extend it as you need and it will work).
    ---------------------------------------------------------
    You can jump to next parts of this series here:
    Part 2:
    In this part, I will show you how to use the system created in this video for picking up any object.
    • Pick Up Items | Unreal...
    Part 3:
    In this part, I will show how to interact with parts of your blueprint so you don't have to put all interactable items in your level manually.
    • Advanced Interaction s...
    ---------------------------------------------------------
    Chapters
    ---------------------------------------------------------
    00:00 - What you will learn
    00:14 - Preparation - Creating a door (modeling tool)
    01:34 - Interface
    01:55 - Interactable object blueprint (door)
    04:56 - Players interaction
    08:39 - SHOWCASE: Testing interaction
    09:12 - Creating HUD
    10:57 - Setting up project for showing info
    14:25 - SHOWCASE: Interaction with showing information
    14:35 - Next parts
    ---------------------------------------------------------
    If you found this video helpful and you want to support me, here are a few ways.
    Follow me on Facebook:
    profile.php?...
    Support me on Patreon:
    / qx01
    Or like this video 👍 and hit subscribe 💢.
    All kinds of support are very appreciated ❤.

КОМЕНТАРІ • 29

  • @lptf5441
    @lptf5441 2 місяці тому +2

    Something I really appreciate is your slow and careful speech. You speak very clearly, and say only what is necessary to convey your instructions. Very well done. Thanks for sharing.

  • @NoahUhler-qv1ok
    @NoahUhler-qv1ok Місяць тому +3

    very nice tutorial, you speak clearly and i can understand all the words you say

  • @serkansokeli3851
    @serkansokeli3851 Рік тому +2

    this channel will grow so much. thanks for tutorial

  • @valentincadilhac5439
    @valentincadilhac5439 4 місяці тому +1

    Wait a minute... That's exactly what I needed for my game! Thanks a lot tou you and thanks to my UA-cam recommendations.

    • @QX01etc
      @QX01etc  4 місяці тому +1

      I am glad I could help 🙂
      GL with development of your game

  • @CardilloSamuel
    @CardilloSamuel Рік тому +3

    That's a VERY good tutorial ! Clearly deserve more views !

    • @QX01etc
      @QX01etc  Рік тому

      Thanks a lot 😌 Glad I could help

  • @KyriosRat
    @KyriosRat Рік тому +2

    Nice tutorial man. Your videos are solid. 👍

  • @hemnnigar6594
    @hemnnigar6594 11 місяців тому

    thanks i hope stay with more tutorials with improvments.

  • @robindis6274
    @robindis6274 Рік тому +2

    Thanks for the tutorial.

    • @QX01etc
      @QX01etc  Рік тому +1

      You're welcome, happy to help 😊

  • @ThorazoneGaming
    @ThorazoneGaming Місяць тому

    For anyone very new, if you get the part where it says to press the add button next to Inherited interfaces and you do not see an add button don't freak, you only need to add it to implemented interfaces. I'm too dumb at the moment to understand but it worked just the same.

    • @QX01etc
      @QX01etc  Місяць тому +1

      I am glad you could solve it out. Sometimes Unreal just does unreal stuff :D
      GL with your game dev journey

  • @manollobango
    @manollobango Рік тому +1

    Very nice tutorial!
    Also the functionality seems to be very intuitive. But what if I want the player be able to change the input settings or to play with controller. Is there a way to set the info box to show the new/corresponding input type for the desired action without much effort?

    • @QX01etc
      @QX01etc  Рік тому +1

      I would use Action mapping (now deprecated but easier to use in my opinion), get its key and its name, and then string append "Press [" + name of key + "] to interact.
      I am not much familiar with Enhanced Input, and I find more difficult to work with it but I would use similar approach.
      Google for getting key of Action mapping or Enhanced Input action and you will surely get it done, it just takes some time (that's why I used easy way in this video).
      Good luck.

    • @manollobango
      @manollobango Рік тому +1

      @@QX01etc
      Thanks for replying and for the tip!

  • @nadirsehaba8239
    @nadirsehaba8239 Рік тому

    Hello, thank you for this tutorial.I have question plz ! The door is closing only when player is in front of the door how to change that plz

    • @QX01etc
      @QX01etc  Рік тому

      I would have to see it to know for sure.
      Try in change in your raycast to *Line trace by channel* -> *Draw Debug Type* to *Persistent* , so you can see what or id you are hitting anything.
      I had problem, that from certain angle , it is hard to aim at door (if you don't have some kind of crosshair).
      In this case you can add box collider to make the door thicker for raycast.

  • @lilidejazz3230
    @lilidejazz3230 Рік тому

    Idk why, but i can't find the "Set Text" under content at 10:33 , i literally search everywhere and if it has a diff name lmao.
    But great video! Loved it! It helped me open the actual door and not activate a switchlight beside it 😅At least i got that. I keep bumping into problem somehow 🤣

    • @QX01etc
      @QX01etc  Рік тому

      Yeah, it's pretty funny because there is Set Text also under Widget, which should work the same 😅.
      If you are sure, you have it is Text Block you placed in, create new widget place in Text Block and search out of it Set Text the same way. In my last video, widget was bugged and I couldn't find basic For Loop 😂 Library probably haven't connected probably - and then even restart unreal doesn't help...but if you copy function from another file, it reconnect.
      ¯\_(ツ)_/¯

    • @lilidejazz3230
      @lilidejazz3230 Рік тому

      @@QX01etc maybe but i don't even have the WBP HUD, i do have the other 3 but it doesn't work. I'll try to search if it's just my version or if i'm cursed 💀💀

  • @creatingbettervisuals
    @creatingbettervisuals 7 місяців тому

    Hi the text isn’t showing up for me when I’ve got to the end ‘Press [E] to open/close door’ I’ve tried everything and checked many times over each step 😕

    • @QX01etc
      @QX01etc  7 місяців тому +1

      Hi, I try go give you a few tips, where the problem might be.
      In BP_Door
      1. Check *HUD* is connected into *Set Info Text (Target)* 11:34 (I made this mistake many times)
      In BP_ThirdPersonCharacter
      2. Check you have connected HUD value into *Add To Viewport* 12:30
      Check Event *LoopForInfo*
      3. Target in *Show Info* is connected with *Hit Actor* 12:59
      4. *ClearHUD* is called AFTER *Delay* 13:34
      5. *ClearHUD* leads back into *Raycast* 13:49
      Good luck

  • @swily123
    @swily123 11 місяців тому

    11:30
    Hi, please tell me why I can't find "setinfotext" if I did everything according to the instructions.

    • @QX01etc
      @QX01etc  11 місяців тому

      Hi, I would check interface I_Interactable that you have HUD variable type set as your WBP_HUD. Since UE5, I sometimes come across that I select variable type, click on it, and it won't change, so I have to click on it twice.
      If this doesn't help I would check HUD for misspelled name of the function (happened to me so many times) or if everything seems alright, try save all and restart UE.

    • @swily123
      @swily123 11 місяців тому

      @@QX01etc yeah, I have already restarted UE5 and even restarted the computer. I checked the I_Interactable interface and everything is fine there with the wbp hud variable. but for some reason it all does not work exactly . could you upload this project of yours to yandex disk (for example) and send me a link? where are you from?

  • @rol1yvfx131
    @rol1yvfx131 Рік тому

    can i copy these settings so i dont have to re-do it every time i want a door ?

    • @QX01etc
      @QX01etc  Рік тому +1

      If I understand you right - you want to create another door blueprint with the same mechanics but a different mesh (looks).
      For this, you can use inheritance - right-click on your *BP_Door* and select the first option *Create Child Blueprint Class.*
      It is good to know about inheritance, but it can be overwhelming.
      So, if you don't want to re-do everything, you can just duplicate the whole blueprint and all functionalities will be in the new one separately.

    • @rol1yvfx131
      @rol1yvfx131 Рік тому +1

      @@QX01etc Thanks i may try it later