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
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
I watched 10 interfaces explanation tutorials and yours was simple enough for the whole concept to click. Thanks
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
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!
Glad you made a video to cover this important topic since it can be confusing. You've cleared things up, as usual!
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
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! :)
Best Intefaces explanation found on youtube ! Thank you buddy !
Thank you very much Matt for your videos. Your videos always help me solve problems that I thought I couldn't solve.
Literally was just looking for this type of video! Lol NOICE
Ha great timing man :)
Yep!! :)
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.
Thank you, Matt. I'm always learning something new about unreal engine because of you!
thank you so much this was really useful, found what i was looking for all this time.
Nice! This is something I don't know anything about.
No problem Fleur, yeah it's simpler then people think, and it's way more efficient :)
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.
Please make more ue4 tutorial, ur tutor simple n easy for learn. Thanks u
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..
That's great to hear bro, happy to help! :)
@@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?
@@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
@@MattAspland Yes Thank you again, it works like a charm..
@@Mj3DArts Ah perfect, no problem bro! All the best to you :)
Thanks!!!
I was using casting before and it was a total nightmare
you are the BEST
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!!
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?
Nice video 😀
Thanks a lot bro! :)
Awesome 👍
Thanks Simon! :)
what would the tpp interacting blueprints look like? im having troubles figuring this out.
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.
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
i tryed with replicated interact for playing and stopping Music in fps game, it works perfectly 😇
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... ??
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
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
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)?
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?
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
How would I go about detecting when I'm no longer interacting with said object when using a linetrace each frame?
these is any tutorial on youtube to show how to change the crosshair when you look at a object that you can interract?
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.
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.
Cheers!
Always a pleasure bro!
How do you make a sound and a widget animation play when you pick the item up?
First 🙂🖤
You are gey
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
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.
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.
Any idea why this wouldnt work while your using the crouch funcitonality?
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?
Matt you beauty 👍
You can not add delay or timeline inside the interface functions, right?
can u make a video on making car parts interactable for machanical games? ty
Hi i aply this to ue5, but it´s not working, can you help me ?
How would you do this with a timeline to make a door open?
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.
Please, tell me how to make it when you hover over the object it shows a widget!.
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 !!!
There is no "vecto x float" function. How fix?
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.
You can create a custom event int the event graph and call the even within the function
@@pupster8956 I tried that but it didn't work... sadly. I'm not sure how to work it.
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! 😀
Great to have you back! That sounds like a great idea too, that could be amazing :D
Hello! How to make a computer in ue4?
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
Always a pleasure bro! And I can look into that one yeah :)
It did not work for me, I tried following this 4 times now and it had not worked, someone help
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
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.
@@MattAspland thx
Does anyone know why Interact Message is not there for me and why I cant change its target from self?
did u ever solve this one
The interact function is not firing at all. I dont know what's not working properly
Thanks Matt :) , how many times do i say thank you lol
Haha, more then enough. All the best to you man :)
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.
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
@@MattAspland Ah thank you very much!
Followed exactly and cube doesn't delete. Not sure why.
Can you do a generated room tutorial just like in SCP?
You are nice
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.
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
what if i want to overlap box instead of line trace !!!!!!!!!!!!!!!!!!
lol, Event Begin Overlap -> call Interact function. It's just the same.
@@frizar999
sorry cuz my knowledge is very simple
@@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.
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
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
7:00
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.
Thanks man, and great idea! I can definitely look into it more :)
@@MattAspland just keep making tutorial from comment section too, that's one of the things that built ur channel.
@@juancharistheashawu Yeah definitely cheers bro!
@@MattAspland tutorial suggestion: ai stops following you when you not only blocked by wall but also when you far enough from it.
@@juancharistheashawu Great idea, I can add it to my list :)
Didn’t work
thank you so much this was really useful, found what i was looking for all this time.
7:00