Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I actually think I already have the answer. Whenever you open up the restart panel you can call "EventSystem.current.SetSelectedGameObject(restartButtonGameObjectName);". This should in theory make the restart button automatically selected.


Source: https://stackoverflow.com/questions/73923902/how-to-select-an-object-by-script-u...

https://docs.unity3d.com/Packages/com.unity.ugui@2.0/api/UnityEngine.EventSystem...

I appreciate the help, but this game was made in Unreal Engine 5 using blueprints with some pretty complex (and kind of arbitrary) menu controller integration.

If I do figure out how to fix it, I will update the game!