In my C++ project I have a FPendingLatentAction in which I have a pointer to an UObject.
This FPendingLatentAction is the only object with a pointer to the UObject.
After a while (20-30 seconds), the FPendingLatentAction will call the UObject.
In the editor and in a packaged windows build this will work fine, no problem at all.
On html5 however, the console will give a warning like this:
LogScript:Warning: Attempted to access MyLatentActionInteger_1 via property K2Node_CustomEvent_LatentAction36, but MyLatentActionInteger_1 is pending kill
It seems that, on html5 at least, the FPendingLatentAction won’t prevent the UObject from being garbage collected.
Is this a bug, or am I forgetting to do something?