Game States & U - William Chung - Aug 15, 2025


Hello all, my name is William and I'm one of the developers of hyper track. 

The Problem

The main menu is a very important part of our game, this is how users like you interact with the game. So, as you can Imagine any problems with the system would be catastrophic. In our coding process the menu besides to be quite difficult from having the mouse disappear if you don't click a button to Causing errors with the AI. We even had problems granting users control Off their vehicles.

This would be a catastrophic Bug on its own but sometimes if you took too long to race the game would crash whenever you cross the finish line. This is a game breaking bug and had to be fixed as quickly as possible

 

Problem Solution

After some debugging and researching my past projects, I found the missing piece, The first problem was quite simple the first thing I needed to do was set show mouse to true in the player controller for the menu next I had to set the input mode to UI only. This fixed the bugs in the main menu, but I still had some more issues when switching to end game. After Noticing that error I decided to look through all the player controllers and made sure that the input modes were set correctly the problem I had with switching back to the menu had nothing to do with the game incense at all. You see at the start of the level I created results widget this widget is responsible for sending you back to the menu when you crossed the finish line. After a while of debugging, I figured out what was happening the widget was being destroyed by the automatic trash removal of Unreal Engine the only way to stop that was to make the widget a UProperty. After that the results screen started working again, the game stopped crashing when returning to the main menu

Get Hypertrack

Leave a comment

Log in with itch.io to leave a comment.