Steps to reproduce:
1. Create a new URP project
2. In the project directory create an empty folder
3. Copy the com.unity.ugui package from [project]Library/PackageCache into the newly created folder
4. Reopen the project, open the Package Manager, press the "+" button, and select "Install package from disk..."
5. Select "[Folder_you created]/com.unity.ugui/package.json"
6. Open the Player settings (Edit > Project Settings > Player) and add "-warnaserror+" into the "Additional Compiler Arguments" section
7. Build the Project
8. Observe the Console
Actual Result: Project build fails due to compiler errors reporting "error CS0109: The member 'WorldDocumentRaycaster.camera' does not hide an accessible member. The new keyword is not required"
Expected Result: Project builds without errors.
Reproducible with: 6000.2.0a8 (6bc6fbc26ac6), 6000.3.24f1, 6000.5.0a6
Not reproducible with: 6000.0.83f1, 6000.2.0a7, 6000.6.1f1, 6000.7.0a6
Fixed in: 6000.5.0a7
Reproducible on: macOS 26.6.2 (M1)
Not reproducible on: No other environments tested