Hello everyone, I was wondering if an Async functions Callback Delegate was also being run on an async thread? For Example the AsyncSweepByObjectType function takes a delegate function, is this function also being run on an async thread or does it run on the main thread?
If I understand correctly,
Let’s think that you have an FRunnableThread actor and you want to trigger a delegate.
You have to use multicast delegate and it has to be an UPROPERTY of FRunnableThread’s owner/parent AActor.
You can trigger that delegate with .Broadcast but execution chain will come from that thread. Not main/game thread
In order to go main thread, you can use AsyncTask ENamedThreads::GameThread.