Begin play execution order changed after moving from 4.17 to 4.20
Hi I've just moved my project from 4.17 to 4.20. There is a very peculiar issue I am facing:
Begin play execution order in 4.17:
PlayerController Class -> Character Class -> GameMode
Begin play execution order in 4.20:
GameMode -> PlayerController Class -> Character Class
Is anyone else having this issue? There is not a single change in my code. I am totally clueless on how and why this might be happening.
One thing that I always do when dealing with event-based programming is to not assume any particular order in events. Maybe they are using a different event dispatcher, maybe the priority for these events changed, it is simply not good to assume this order.
If you really need this specific order you should probably create a custom event that you trigger yourself. There is another solution discussed in the following question
But I don't think that is a good one.
As a general advice, I would suggest for you not to assume order in events.
answered Jul 24 '18 at 03:36 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here