Unreal Engine 5 Tutorial - C++ Part 2: UProperty & UFunction

preview_player
Показать описание
Welcome to our Unreal Engine 5 C++ tutorial series. This course of videos will show how to develop classes and game mechanics using C++ in Unreal Engine 5 as well as go through some best practice when developing with both Blueprint and C++.

In Part 2 we talk about UProperty and UFunction in Unreal Engine and how and why you would use their various settings.

SUPPORT ME

PRIVATE 1-2-1 SESSIONS

JOIN THE COMMUNITY

FOLLOW ME
Рекомендации по теме
Комментарии
Автор

I followed your “intro to c++” series last year and now I am coding most things in c++ including marketplace plugins.

Thank you for making that series

KomodoBitGames
Автор

For Anyone trying to get "Hello" to print at 17:35, make sure you have removed the custom event beforehand.
Or unlike me and keep watching the video, he explains it at 18:04

Seraian
Автор

This is so kewl. I have always tried to imagine what the visual scripting looked like in actual code. I never thought it was this simple. But a lot makes sense now.

slimyelow
Автор

Idk if I'm just crazy but I think you skipped over removing "void in the cpp file before successfully hot reloading unreal at approximately 9:30

blackdoc
Автор

Thank you again! Keep up the c++ tutorails

meowththatsright
Автор

For anyone wondering why the value in 6:20 isn't printing for ya, try adding the blueprint to the scene XD

TheKUBczok
Автор

Literally the best tutorial so far in youtube, i mean the series, keep it going my bro!
But idk why u have to use events if u can use function inside other function and do the same job?, i think there is something that i couldn't figure out, thx again for that!.

MonderMurshed
Автор

I ran into a weird issue. I named the event 'OnValueCalculated' and it would not print the hello. Tried it like 5 times. Then I renamed the event same as yours and it worked. Is there some weird by convention rule in unreal? Like at 10:28 the event was not showing in the function overrides BUT it was showing on canvas selection box but it did not 'print'

M
Автор

12:06 Well, I'm surprised, I expected 11:15 Hello then 45 because OnValueCalculate event is fired before the CalculateValue function is returned.

EricWilliamsCG
Автор

Hey! I don't really understand what the purpose of at 17:06 is. Mine shows up as an underlined error but still works. Thanks!

sofiasorace
Автор

Hello, i have a question.  Is it possible create fog in UE5. The fog should be in the area and hides everything. And there was no such fog around the protective crystal. But the character must entered and left the fog without affecting it. In the fog everything is hard to see, but it was clean near the crystal

sayrusan
Автор

Thanks Ryan,
how come Unreal is printing first "45", then "Hello",
shouldn't the event be triggered before the return value?

CloudStrife
Автор

So I am a little confused.
If I do not put my OnValueCalculate inside my .cpp and ONLY have it in MyTestActor.h then I am able to compile the code however if I put the
void {} inside my .cpp

I get a compiling error Failed to link patch (0.000s) (Exit code: 0x491)

Am I doing something wrong? It appears like I am declaring it twice when I already declared it in the .h?? I am a little confused. It allows me to access the fuction this way any way but it is not the same setup as you have.

SPYDRFAE
Автор

when i reopened my project it completly broke

johndoe
Автор

Hey!
nice video :D

how come you put put UFunction and variable on the same line?
Unreals docs put them on separate lines.
Is it just preference? :)

Dkryption
Автор

Those native events, what are they? Giving event default calculations?

magnus
Автор

Thanks for the free content I guess, but 19min to print out two integers added together is tedious. Great for complete beginners though.

oOSvalbardOo
Автор

I get an error after compiling this code.

SoFlyGameStudio
Автор

I hate programming 😡😡 why does UE need this crap :/

wallacesousuke
join shbcf.ru