UMG PreConstruct does not match Play
I've been learning some UMG practices from the Generic Shooter (huge thanks to Michael Allar for making some amazing projects) to make a Main Menu for my project and I'm trying to sort my game modes with multiple vertical boxes nested in a widget switcher.
I wanted to keep it simple and read the potential game modes from a data table (like in GS) then sort the modes using text arrays to determine how to distribute the buttons to the necessary vertical boxes.
Here's my code (sorry for the mess, but I tried multiple concepts and all produced the same result)::
The code worked perfectly during the PreConstruct process (shown below)
But then when I ran a PIE session I got this::
And when running in a packaged build, nothing shows up at all.
Right now I'm only getting 30 FPS when running that particular level, but I figured that wouldn't be an issue. (I understand that you can have issues with blueprints executing in the correct order)
I've also tried running the code outside of a function and have also called the function as impure and non const, but no changes occurred.
I know for a fact there aren't any typos in the text arrays or the code wouldn't fire in PreConstruct.
If it matters at all, I'm streaming in two levels on play (which is when this widget is constructed) so my first thought is that it's a performance issue, but I want to be sure before I go tearing up my level.
Any help would be appreciated.
asked Oct 23 '18 at 10:08 AM in Bug Reports
Creating an answer to mark this issue as resolved. Thank you Jeff for pointing me to the proper location!
answered Oct 24 '18 at 08:09 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here