How to create a Custom event in C++? UE4

I want to create an event in C++ which will be called many times under the C++ code obviously, and if Possible please tell me how to use the sequence in C++? or it just calling functions after one another?

The visual example is:
321

Custom event is simply a new function in C++. Just declare it in .h and make implementation in .cpp

.h:

void MyFunc();

.cpp:

void MyClass::MyFunc()
{
}

Parameters go into the brackets, and you can have a return type instead on void too.

And sequence in BP is just for visual convenience. In c++ just call functions one after another.

2 Likes

Thank you for explaining in details Sir .

1 Like