Input System working in Editor but not in build(changing to x86_64 doesnt work).

First post

Title says it. My controls work fine in Editor mode. But when i build and run it. None of my controls from the Input System work on build. UI or any other kind for that matter.

I feel like i have looked around on Stackoverflow and this forum. But i can’t find any solutions.

Kind regards.

Check the logs, try to attach a debugger so you can see what’s happening.

1 Like

Thank you, didnt realize that is was possible to show the debug log in a build.
Im just getting the error that it was null reference. Though i dont precisly know where to set it.

Will look at it now

This is how looks in my Script with. i have OnEnable/OnDisable further down

EDIT*
I think i fixed it, making it like so instead


If possible can someone explain why it has to do a null check and do it in start when building, but it works perfectly fine in the editor ?