Space and Mouse 0 Input Doesn't Work in Build

Update: This has been solved!

I tried building my game for the first time. When I play in build mode the “LeftMouseButton” input (positive=mouse 0, alt=space) doesn’t work for my fps game, but it will work in the editor. I also have inputs for awsd to control movement and mouse movements for camera rotation. Both work in build.

The code below shows where the script handles inputs.

        // Player firing weapon
        if (Input.GetButton("LeftMouseButton") && Time.time > playerFireWeaponScript.ReturnNextFireTime()) {

            // Damage enemies through raycast and create firing effects
            playerFireWeaponScript.FireWeapon();
        }

Why are you checking for the direct input and not the fire button mapping in the input manager?

It’s sloppy organization but that is the button mapping in the input manager… I’m not proud of it, but it’s named “LeftMouseButton” even though spacebar works too.