Unreal Engine 4 C++ Tutorial - Using Interfaces - UE4 / Unreal Engine 4 Intro to C++

preview_player
Показать описание
This Video:
In this video, we look at the use of Interfaces in C++, how to create, implement and send messages through Interface functions.

Intro to C++:
Intended to be the true intro to C++ for UE4. This playlist is intended to focus on one topic at a time and explain how, why and when they work. Think of it as documentation in video form.

Chapters:
00:00
00:10 - Intro
01:15 - Creating Interfaces
02:08 - Interface Header
03:41 - Character Header
05:23 - Character Code
06:25 - Calling Interfaces
11:22 - Testing Results

Links:

RECOMMENDED READING - Game Theory Books -

#ue4, #unreal_engine, #Cpp, #interface
Рекомендации по теме
Комментарии
Автор

Finally an understandable and nicely presented explanation about how to use interfaces in UE C++ :) Thank you!

seahawk
Автор

Incredible tutorial. I was banging my head just trying to figure out how to properly use these. It's hard to find really good information. Thank you so much! You're a great teacher!!!!

matrixcn
Автор

Where was this earlier this week when I was implementing an interface in C++ :D Thanks for the knowledge, and keep up the good work.

jevinscherries
Автор

This video was exactly what I was looking for. Thanks!

qcgeneral
Автор

Thank you for showing the C++ way struggled to find an example like this most videos were showing C++ interface just used in blueprint

ockertnel
Автор

Great Programming focused video for someone getting knowledge into Unreal engine C++. I hope you can make more like this.

giovannisierra
Автор

Informative video about interfaces, thank you!

reiderjack
Автор

OH MY GOD, YOU DESERVE SO MANY MORE SUBSCRIBERS!

noctua
Автор

Thank you so much! It was really useful!

Dronium
Автор

Very, very interesting. Thank you for this.

aleca
Автор

very helpful.
love it.
thanks a lot.

igotbit
Автор

i wished you showed what file you were in at the top but this still helped greatly, thank you

GodfTime
Автор

The difference between methods is that you couldn't use the second one with Blueprint classes, which don't inherit interfaces, but just implement them. This way they just couldn't interact, even if they implement Interact function in their Blueprints properly

milos_slav_sky
Автор

Is this playlist /series the more comprehensive?
I really like your content and have learned a lot so far.
Thank you so much for making this dev a bit more enabled.

mattgraves
Автор

Thanks for the exlanation. Is it a practice in unreal to have actual default implementation in the interface.cpp? Or is that not a thing?

GeNN
Автор

Really nice video, good job !
I have a little question if it is not bothering you,
In character.h I would have done virtual void OnInteract_Implementation() for override in BP the function like you have done in your tutorials about interface and not void OnInteract_Implementation() override for the blueprint case.
Why this difference between this video and the tuto ?

Thanks again for your time and explanations

ginkerzo
Автор

Amazing, thank you, I was looking for literally this. I needed a way to generically interact with different type of objects, I guess this is common in gamedev ;). Does this work exactly the same in UE5?

thehambone
Автор

HI! I really like your videos, thanks a lot! Definitely like from me. They are very useful for me as for unity developer. And it would be good see from you videos about SOLID in Unreal engine 4.

gamescreator
Автор

Hello, how can I expose a c++ interface method to the blueprints as a message?
So I can call it via blueprints without casting.
Currently I can call it only as a function

SurviveOnlyStrong
Автор

EDIT: Breaking the link between InputAction Interact and LineTraceByChannel fixed the issue.

Hey! I'm following your old UE4 C++ series and i ran in to an issue with the interface. The debug traces and object focus work, but the Destroy() command does nothing. I can't manage to figure out a way to destroy the object even though i've followed the code in the tutorial in every part. It shows that my inputs are being registered, but the removal of the object i can't figure out. No error messages either. I'm thinking that there could be an issue with the destroy command not being actived from the Input_Implementation line. Any ideas for solutions to try or other ways to recreate it? Thanks for the help!

ikanuutinen