Mouse shows in editor, but not in the packaged build

So,


This is my level blueprint in unreal engine 5 for my main menu level. The mouse cursor shows fine in the main menu in the editor, but when i package the game, the mouse doesnt show, but when i tab out and click on the menu buttons unfocused, my mouse shows. Any help?

likely the level loads before the player controller exists and so the Ref is Null.

better to do this logic in your player controller itself. you can set a variable in the GameMode or something to identify if the level requires a cursor or not