NEW Unreal Engine C++ tutorial PART 5: Timers

Опубликовано: 16 Октябрь 2024
на канале: AlenLoebUE4
1,630
49

I want to thank everyone for supporting me on my way through making these tutorials. To make my tutorials better I would like to ask you to write comments on these next videos with critics about my tutorials. I won't ignore them. I have a strong soul so you can write both negative and positive things about my videos; it won't break me down. But without any threatening comments or anything like that, please ;).

Quick summary:
Functions in ue4 c++ are declared using the UFUNCTION tag, which is very similar to UPROPERTY because it can also take in certain options
The SetTimer() function is a member of a FTimerManager class, which can be found in a UWorld class
1st parameter is an FTimerHandle object, which identifies a timer
3rd parameter is the function you wish to call. Don't forget to write your class and an & character .
2nd parameter is an object that's setting the timer
4th parameter is a float delay, which is the interval rate between function calls
the last parameter is a bool option to loop a timer or not.

Thanks for watching!