Blueprint Interfaces | More Efficient Interactions | Interact Interface - Unreal Engine 4 Tutorial

Поділитися
Вставка
  • Опубліковано 11 чер 2024
  • Hey guys, in today's video, I'm going to be showing you how to create and use a blueprint interface. In this example, I will be creating one to interact with different blueprints as my player character.
    #Ue4 #UnrealEngine4 #Ue4Tutorial
    ___________________________________________________________________________
    00:00 - Intro
    00:24 - What Is A Blueprint Interface?
    01:03 - Overview
    01:21 - Tutorial
    09:32 - Final Overview
    09:46 - Outro
    ___________________________________________________________________________
    My Public Video List: trello.com/b/7vJgXzBm
    My Patreon Page: / mattaspland
    Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
    The Basics Of Nodes Playlist: • The Basics Of Nodes In...
    Blender Tutorials Playlist: • Blender Tutorials
    ___________________________________________________________________________
    If you enjoy make sure to subscribe: / @mattaspland
    Join My Discord Server: / discord
    Follow Me On Instagram: / matt_aspland_
    All My Social Media Links: linktr.ee/MattAspland
    ___________________________________________________________________________
    If you want to support me, you can PayPal me at "matt.aspland.1@gmail.com". This is by no means expected or required. It is just a nice support :)
    My Patreon Page: / mattaspland
    Link to PayPal: www.paypal.com/
    You can also support me on Ko-Fi following this link: ko-fi.com/mattaspland
    Thank you :)
    ___________________________________________________________________________
    ♫Music By♫
    ●Kronicle - Chill Noons
    ●Soundcloud - / the-chemist-10

КОМЕНТАРІ • 108

  • @MattAspland
    @MattAspland  3 роки тому +21

    For anyone wanting to interact when overlapping, instead of looking at. This below code should work for you. Let me know if you want any further explanation :)
    imgur.com/a/Dq5biqK

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

    I watched 10 interfaces explanation tutorials and yours was simple enough for the whole concept to click. Thanks

  • @braxtonburks7108
    @braxtonburks7108 3 роки тому +4

    Stellar tutorial! Simple and to the point. I’ve been hearing that Casting is not ideal and I can see now why interfaces are awesome

  • @stormhooten9755
    @stormhooten9755 2 роки тому +1

    This just helped me so much not for destroying the object, but taking the same principle and having an object transfer me to the new level. Thank you!

  • @stevenwynn819
    @stevenwynn819 3 роки тому

    Glad you made a video to cover this important topic since it can be confusing. You've cleared things up, as usual!

  • @aerobiker8230
    @aerobiker8230 3 роки тому +9

    Heyyy! Love how unreal has maaany ways to do different things. I just started learning and all I know was using collision boxes but this is great too! Thanks! Love your channel

    • @MattAspland
      @MattAspland  3 роки тому +1

      Hey man, yeah you'll always be finding new and better ways of doing things! Part of the reason I love it :)
      Thank you for your kind words too man, all the best to you! :)

  • @geeksinsuits
    @geeksinsuits 2 роки тому +1

    Best Intefaces explanation found on youtube ! Thank you buddy !

  • @BM_100
    @BM_100 2 роки тому

    Thank you very much Matt for your videos. Your videos always help me solve problems that I thought I couldn't solve.

  • @MiniSlac
    @MiniSlac 3 роки тому +6

    Literally was just looking for this type of video! Lol NOICE

  • @scc1940
    @scc1940 2 роки тому

    Thank you so much! I was learning how to communicate between blueprints with a linetrace and I couldn't get it to work until I saw this video.

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

    Thank you, Matt. I'm always learning something new about unreal engine because of you!

  • @Ghostreborn11
    @Ghostreborn11 2 роки тому

    thank you so much this was really useful, found what i was looking for all this time.

  • @fleurbird
    @fleurbird 3 роки тому +5

    Nice! This is something I don't know anything about.

    • @MattAspland
      @MattAspland  3 роки тому

      No problem Fleur, yeah it's simpler then people think, and it's way more efficient :)

  • @static2601
    @static2601 2 роки тому +1

    Thanks. Was banging my head for hours trying to figure out how to get the actor of a line trace so I can call a function of that actor. Problem is, unless you cast to a specific blueprint, you cant access its variables in game. Works great now, I need to learn more about interfaces, while ive done them in the past, I didnt know they could be used like this.

  • @begolu9907
    @begolu9907 2 роки тому

    Please make more ue4 tutorial, ur tutor simple n easy for learn. Thanks u

  • @Mj3DArts
    @Mj3DArts 3 роки тому +4

    thank you so much for this one.. i wanted to shoot out lights with a linetrace and couldn't figure it out. this works perfectly like you say..

    • @MattAspland
      @MattAspland  3 роки тому +1

      That's great to hear bro, happy to help! :)

    • @Mj3DArts
      @Mj3DArts 3 роки тому +1

      @@MattAspland now i just need to be able to turn of the emissive material in the lightbulb.. do i need a parameter collection and a timeline to do it? is there a function or something else that would make that happen easier?

    • @MattAspland
      @MattAspland  3 роки тому

      @@Mj3DArts You could make the material a material instance, and have the emissive colour as a parameter. Then you can access and change that parameter via the instance at run time. I did something similar in this series, where I am changing the door colour at runtime based upon a value I set. I do this on the construction script, but you'd do it when you shoot out the lightbulb.
      I believe it is near the beginning.
      ua-cam.com/video/NXIYyVUF4Z4/v-deo.html

    • @Mj3DArts
      @Mj3DArts 3 роки тому +1

      @@MattAspland Yes Thank you again, it works like a charm..

    • @MattAspland
      @MattAspland  3 роки тому

      @@Mj3DArts Ah perfect, no problem bro! All the best to you :)

  • @SaynYT
    @SaynYT 2 роки тому

    Thanks!!!
    I was using casting before and it was a total nightmare

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

    you are the BEST

  • @josharnold4203
    @josharnold4203 2 роки тому

    Thanks for the great video! If we wanted to show unique text that pops up for each object, is there a simple way to just have a text field parameter on the interface where we can type in the objects name? Or do we need to implement that logic in each object we want to display pop up text? Thanks!!

  • @wolfiedgr8t
    @wolfiedgr8t 3 роки тому +1

    Hi Matt, could you make a video showing other examples of using blueprint interfaces? I'm not 100% on how I could use them and are they better to use over cast to nodes?

  • @abdullahsohail5395
    @abdullahsohail5395 3 роки тому +5

    Nice video 😀

  • @Si-Toecutter
    @Si-Toecutter 3 роки тому

    Awesome 👍

  • @wtwmikey
    @wtwmikey 2 роки тому

    what would the tpp interacting blueprints look like? im having troubles figuring this out.

  • @justindeines6724
    @justindeines6724 2 роки тому +1

    How would one get this to work with your pickup/rotate item tutorial. I want to use this interface system with that. Not sure if that would remove all casting from your other video or not but I am curious.

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

    Hi Matt Aspland. Please, would you like to help me with a difficult question here?... I did the crosshair that you did in your tutorial (Create An Interact Dot Crosshair - Unreal Engine 4_5 Tutorial). I would like to use just one button ( mouse or keyboard, really doesnt matter) to interact with every mesh that has interact implementation. How do i do that? For example, if i want to use the left mouse button to interact with a door or/and with a material changes or/and even call a variant manager and keep my dot crosshair like the one in your tutorial, how do i do that? Thanks again

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

    i tryed with replicated interact for playing and stopping Music in fps game, it works perfectly 😇

  • @jp3d911
    @jp3d911 2 роки тому

    hey Matt, thanks a lot for this clarification .. I have one question : what's the point of testing if an actor implement an interface prior to call a function through this interface since doing so on a actor that does not implement the interface doesn't return any error... ??

  • @izzyharvin
    @izzyharvin 2 роки тому

    Is this also another way to interact with a picture where it plays a video for you? I'm assuming I have to put the video widget in the interface node at 8:36 in the video? I also look at your other videos to try to make it happen. Thank you for the help

  • @dangancopa111
    @dangancopa111 2 роки тому

    is there a way to start a sequence player when you cast a ray to hit something, I want to look at a couch click "e" and then have the sequence play where the camera moves the actor on the couch

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

    Great tutorial-even in UE 5.2. Would you be able to show me a blueprint for how to display the "E" onscreen as well-on hover, before the object interaction (sort of like in your thumbnail)?

  • @SuperVillianStudios
    @SuperVillianStudios 2 роки тому

    How does this work if you need to pass data between two actors? Like if you were to equip a weapon but you need to pass the socket, weapon mesh, and weapon type (struct) along the interface?

  • @toren4317
    @toren4317 9 місяців тому

    Hi! If the first time the line hits the object and triggers the interaction, how do I stop it from triggering multiple times if I keep pressing the keyboard input? I want to pair this with a dialogue system and I think this might be a problem

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

    How would I go about detecting when I'm no longer interacting with said object when using a linetrace each frame?

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

    these is any tutorial on youtube to show how to change the crosshair when you look at a object that you can interract?

  • @radicalgamettv
    @radicalgamettv 2 роки тому

    Is it possible to add a Flip Flop to the Interact interface to make it toggleable (on a per object basis, perhaps?) thanks in advance.

  • @rexx4K_
    @rexx4K_ 2 роки тому

    Hi, I got a little problem am using the sphere collision method, on the actor being destroyed (The Pinned Comment One), but when I have multiple actors close together; when I press E it destroys only one.

  • @iaandrei
    @iaandrei 3 роки тому +1

    Cheers!

  • @freddywastaken9531
    @freddywastaken9531 2 роки тому

    How do you make a sound and a widget animation play when you pick the item up?

  • @Faizy_Writes
    @Faizy_Writes 3 роки тому +1

    First 🙂🖤

  • @rekt4759
    @rekt4759 2 роки тому

    Matt, i know this vid is old now but how would I use different functions in the same interface? so if I push E on this object - do this function but on that object - do that function. I see in the Line trace graph you need to specify the function there so how/where do I specify which func to implement on that graph? Hope i explained this correctly

  • @Anonymous-mf8ip
    @Anonymous-mf8ip 3 роки тому

    Hi, I am having a problem where I have a game which you need to press 6 buttons, everytime you press a button, it increments a variable inside of a different blueprint class but the cast doesn't seem to work. Do you have an idea of how I can increment a variable in a different class from a button class. Thanks in advance.

  • @sunnymon1436
    @sunnymon1436 2 роки тому

    Fun fact, interact does use casting, it just doesn't do it by you calling the cast node. I learned this from watching an unreal live demo.

  • @baddweather6362
    @baddweather6362 2 роки тому

    Any idea why this wouldnt work while your using the crouch funcitonality?

  • @teamnobz501
    @teamnobz501 2 роки тому

    Hi! i have a question i have a tree and i want to like destroy it but i dont have a event graph of the tree can you please help me with that?

  • @wolfiedgr8t
    @wolfiedgr8t 3 роки тому

    Matt you beauty 👍

  • @akzork
    @akzork 2 роки тому

    You can not add delay or timeline inside the interface functions, right?

  • @orccomputers2145
    @orccomputers2145 2 роки тому

    can u make a video on making car parts interactable for machanical games? ty

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

    Hi i aply this to ue5, but it´s not working, can you help me ?

  • @mattix9795
    @mattix9795 2 роки тому

    How would you do this with a timeline to make a door open?

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

    Something i don't understand , if i add a function to the interface and add an input on it , i can create the input , but it will not let me name the input. It just keeps going back to " parameter " , no matter what i try to name it.

  • @RapidRealityRJC
    @RapidRealityRJC 2 роки тому

    Please, tell me how to make it when you hover over the object it shows a widget!.

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

    Any chance you could make a tutorial - Where you must pick up an object, and use that same object to interact with another object (say a button for example), which if done successfully by the player unlocks a door?
    I'm so close! Its just using the asset on another object to unlock a door is where I'm stuck :(
    I'd really appreciate it !!!

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

    There is no "vecto x float" function. How fix?

  • @atenmusic1027
    @atenmusic1027 2 роки тому

    Hello, thank you for the rundown on this interface, it's awesome but I'm having some trouble with it. I'm trying to open a closet door with this blueprint but, this method doesn't allow the "Timeline" or "Move Component To" node to be called so, the door will just snap into place. How would you ease the door open?? Thank you again for all your help.

    • @pupster8956
      @pupster8956 2 роки тому

      You can create a custom event int the event graph and call the even within the function

    • @atenmusic1027
      @atenmusic1027 2 роки тому

      @@pupster8956 I tried that but it didn't work... sadly. I'm not sure how to work it.

  • @mr.zeping4800
    @mr.zeping4800 3 роки тому +2

    Hello Matt, so when my PC went boom boom
    I took a break from programming
    And the break is over 😀 I'm thinking of making a battle Royale! 😀

    • @MattAspland
      @MattAspland  3 роки тому

      Great to have you back! That sounds like a great idea too, that could be amazing :D

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

    Hello! How to make a computer in ue4?

  • @mojiacademy9400
    @mojiacademy9400 3 роки тому

    tnx teacher for this helpfulll video Can you make video about reload with mag mesh I just serch the howl youtube and didnt found somting tnx alot

    • @MattAspland
      @MattAspland  3 роки тому

      Always a pleasure bro! And I can look into that one yeah :)

  • @kuralluagondevelopment4829
    @kuralluagondevelopment4829 2 роки тому +1

    It did not work for me, I tried following this 4 times now and it had not worked, someone help

  • @C1ayz
    @C1ayz 3 роки тому +1

    Hi how to make a box when you go on it it give you play a small box in the screen moving random item and the item it show you get

    • @MattAspland
      @MattAspland  3 роки тому +1

      Hey, I can look into that. You'd essentially want to create a widget, and create a sliding animation inside of it. Then set the image and text on that widget, to represent the item you just picked up.

    • @C1ayz
      @C1ayz 3 роки тому +2

      @@MattAspland thx

  • @papasheev8924
    @papasheev8924 2 роки тому +1

    Does anyone know why Interact Message is not there for me and why I cant change its target from self?

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

    The interact function is not firing at all. I dont know what's not working properly

  • @alexjr977
    @alexjr977 3 роки тому +3

    Thanks Matt :) , how many times do i say thank you lol

    • @MattAspland
      @MattAspland  3 роки тому +1

      Haha, more then enough. All the best to you man :)

  • @TheZoobZoobs
    @TheZoobZoobs 3 роки тому

    Hello, I have used a number of your videos to resolve some serious issues my nodes had (god bless your soul for that) I was wondering, do you have a tutorial for resident evil or silent hill item pick up mechanics or something similar? I mean the function in those games which causes the item to appear in the screen as a large model or an image with a text prompt asking the player if they wish to pick it up. Sorry, I am not quite sure how I can search for that in terms wording.

    • @MattAspland
      @MattAspland  3 роки тому

      Hey mate, that's great to hear! And I don't have a video on it currently, but I know what you mean and I can add it to my list. You may want to look for an inspection system

    • @TheZoobZoobs
      @TheZoobZoobs 3 роки тому +1

      @@MattAspland Ah thank you very much!

  • @zZzDarknezZz
    @zZzDarknezZz 2 роки тому

    Followed exactly and cube doesn't delete. Not sure why.

  • @TheGaminator800
    @TheGaminator800 2 роки тому

    Can you do a generated room tutorial just like in SCP?

  • @gebrailfodred6911
    @gebrailfodred6911 2 роки тому

    You are nice

  • @gamerdweebentertainment1616
    @gamerdweebentertainment1616 3 роки тому

    Comments saying good video... hmmm
    Okay, I'll stick around...
    LineTrace Interaction... expected something else, but this also good :)
    Was expecting more of a line like here's a door, here's an pick upable item, here's a pushable item and how interact with all of them differently while having one interaction interface. Then again should be self-explanatory already, if you know the basics.
    God tried so many tutorials by now, should be able to make somewhat a demo already. Should focus on that.

    • @MattAspland
      @MattAspland  3 роки тому

      Yeah this was more of a general video for using a blueprint interface. For opening doors, you should be able to do the same code from my previous videos, but start the interaction with this video, instead of the interaction in that one. So casting to, gates, action events. Just do it in the function :)
      I can give specific help if you'd like :)
      ua-cam.com/play/PLQN3U_-lMANNeRdjASe1vrm2WJ8X12oWP.html

  • @mostafaeid2275
    @mostafaeid2275 3 роки тому +1

    what if i want to overlap box instead of line trace !!!!!!!!!!!!!!!!!!

    • @frizar999
      @frizar999 3 роки тому

      lol, Event Begin Overlap -> call Interact function. It's just the same.

    • @mostafaeid2275
      @mostafaeid2275 3 роки тому

      @@frizar999
      sorry cuz my knowledge is very simple

    • @frizar999
      @frizar999 3 роки тому +1

      @@mostafaeid2275 then learn basics (and most important - PRACTICE). you don't really need to use interfaces for now if you are at beginning. just do small things and use casting, it's ok. when you understand how it works then you can use more specific things like interfaces.

    • @MattAspland
      @MattAspland  3 роки тому

      Hey, what you could do is add a box collision on to the object blueprint. Then in your character blueprint, you can do the following code instead that I've just made. This will just see which objects you are overlapping, and then overlap with the first one it finds. Let me know if you want an extra explanation :)
      Code for interacting with overlapping items: imgur.com/a/pyrT7VA

    • @MattAspland
      @MattAspland  3 роки тому

      But yeah, for a more simple approach to interacting, you can use the following video which uses box collisions and casting :)
      ua-cam.com/video/-fCU5XQizZI/v-deo.html

  • @user-yk2dc6yr7q
    @user-yk2dc6yr7q 11 місяців тому

    7:00

  • @juancharistheashawu
    @juancharistheashawu 3 роки тому +2

    No wonder u've had a lot of req about monetary support, it's bc u often make tutorials from viewers request.
    Oh what about you add "tutorial request in private" benefit on ur patreon membership so ur patreon via discord or something can request a tutorial and u give them the screenshot of the code/tutorial video/project file (according to the tier)
    Or "consultant" benefit so u can help ur discord members or patreons by giving some advice or simple code.

    • @MattAspland
      @MattAspland  3 роки тому

      Thanks man, and great idea! I can definitely look into it more :)

    • @juancharistheashawu
      @juancharistheashawu 3 роки тому +1

      @@MattAspland just keep making tutorial from comment section too, that's one of the things that built ur channel.

    • @MattAspland
      @MattAspland  3 роки тому

      @@juancharistheashawu Yeah definitely cheers bro!

    • @juancharistheashawu
      @juancharistheashawu 3 роки тому +1

      @@MattAspland tutorial suggestion: ai stops following you when you not only blocked by wall but also when you far enough from it.

    • @MattAspland
      @MattAspland  3 роки тому

      @@juancharistheashawu Great idea, I can add it to my list :)

  • @mintytavor8332
    @mintytavor8332 2 роки тому

    Didn’t work

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

    thank you so much this was really useful, found what i was looking for all this time.

  • @user-yk2dc6yr7q
    @user-yk2dc6yr7q 11 місяців тому

    7:00