Reproduction steps:
1. Open the attached project "ZSerializer.zip"
2. In File > Build Settings make sure that "ZSerializer/Samples/2 - Scene Groups/House/Scenes/Main Menu", "ZSerializer/Samples/2 - Scene Groups/House/Scenes/Bedroom", "ZSerializer/Samples/2 - Scene Groups/House/Scenes/Kitchen" Scenes are added in Scenes in Build
3. Build
4. Observe the Console
Expected result: There are no errors, Build is successful
Actual result: Build fails with error: "The type or namespace name 'GamepadSpeakerOutputType' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)"
Reproducible with: 2020.3.30f1, 2021.2.4f1, 2021.2.13f1, 2022.1.0b10, 2022.2.0a6
Could not test with: 2019.4.36f1 - Project breaks due to downgrade