No matter how I try, or which UWorld instance I use, I cannot receive timer callbacks while in the editor. The only way this is possible it seems, is to start the game in the editor (PIE) and then retrieve the UWorld instance from the local player. It is very important that i find a mechanism for receiving per-frame updates while in ordinary editor mode. How can i go about doing that. Thank you for your time.
I was able to find a world context while in the editor (not PIE) that allows me to receive timer callbacks. Finding the right UWorld instance was by trial and error.
Here is how i found an UWorld instance that works:
Notice that it will iterate though all existing UWorld instances and find the UWorld instance that is of the “Preview” type. In my particular example, there are a total of 5 UWorlds in the World list. 1 is of type “Editor” and 4 are of type “Preview”. Out of them all, the ONLY UWorld instance that worked, was the very last instance in the list. I discovered this because, as you can see in the code above. only the last UWorld “Preview” Instance will be set. If found this out randomly. To sum up; I was able to solve my own issue by randomly searching though all UWorld instances in existence and trying them 1-by-1. Going forward, can someone please tell my why only one of them worked when using it’s TimerManager, and the others didn’t. Also can you tell my how to tell if a UWorld supports an active timer. Thank you for your time.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.