How to create Async functions in UE4.25

I have been coding in C# for around a decade now but my C++ skills are virtually non existent.

I look in the documentation and I see lots of functions listed but no code examples so I turn to Google and I find no end of examples …for UE4.8 :frowning: I try to duplicate what they did but I get all manner of unhelpful errors (Like C++ is known for) so I struggle for hours trying to write a single line of code and eventually I finish with that line of code deleted and absolutely nothing to show for the half a day I just wasted trying to write a single line of C++ code.

In Unity the entire function would take 2 minutes or less. In UE4 I spend half a day failing to write one line of code. I herewith admit my defeat and am asking for some help, please…

Will anyone please demonstrate for me how to create Async functions in UE4.25? Please! I promise won’t complain if you treat me like an idiot and spoon feed me your explanation :wink: …just, explain to me what I’m clearly just not seeing/understanding or what I’m missing.

I know there are a bunch of ways built into UE4 and you can choose the right method based on your requirements…and yet I can’t figure out how to use any of them. (In case it’s not yet painfully obvious, I’ve been using Unity since version 1.6 but I’ve only really been trying to use Unreal since 4.24 so I am definitely a n00b with Unreal & C++)

Thanks in advance

Have you checked Tasks? You can check FNonAbandonableTask. Here is good tutorial about FNonAbandonableTask. Assure that this video below covers how an async task works in Unreal.

1 Like