Hey guys, Im wondering, is there an easy way to pass method as callback to another method in C++? Mostly, Im interested in the way like it could be done in C# with Action delegates, like:
I guess it would be done with Delegates, but not sure isnt there a simplier way here? Thanks!
asked Mar 21 '17 at 06:24 PM in C++ Programming
Hi. You can use Unreal delegates itself:
A delegate could be created from function using static methods of created delegate type:
Also for simple callbacks you can use a function pointer style:
answered Mar 21 '17 at 06:45 PM
Nice! Guys, thanks a lot! This is exactly what I have been looking for!
Thanks a lot!
answered Mar 21 '17 at 07:37 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here