Mobile - casting global function breaking game

Repro:

  1. Create your custom game mode and game state - assing them to your map,
  2. Create global function which will return your custom game state,
  3. Open Level Blueprint and do something on begin play - move or change camera whatever,
  4. After that call your global function,
  5. Run on PC → everything is working,
  6. Run on Mobile Preview → nothing from Begin Play will be triggered,

If you add prints to your global function you will see that it isn’t even called.

Another issue with GameState - make a custom event in your custom game state. In level blueprint cast to your custom game state and call this custom event, it won’t be called in Mobile Preview if you have a UMG widget there and you try to change visibility of a text block.

Howdy intoxicat3,

Thank you for your repro steps that you have provided. Just need a bit more information on step 3. When you say “Do something on begin play - move or change camera whatever”, How exactly do you have this setup in your project? I just want to be sure I have this setup correctly.

Thanks and have a great day!

Hey intoxicat3,

just wanted to check in with you and see if this issue is still occurring. If so, Could you please provided the information that was asked for in the previous comment?

Thanks and have a great day!

Hey intoxicat3,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.