Mouse input don't work in build?

Everything works fine in the editor, but in the build I can only interact with the UI.
Input.GetMouseButton(0) always returns false no matter what I do.
Any idea how I can fix this ?

bump, I still haven’t found any fix

Where are you checking for it? Update or FixedUpdate? Which Unity version?