Search Issue Tracker

Fixed

Fixed in 6000.0.0b16

Votes

0

Found in

6000.0.0b13

7000.0.0a1

Issue ID

UUM-69784

Regression

Yes

Addressables' default build script ignores UNITY_SERVER define constant when using Linux Dedicated Server target

--

-

Reproduction steps:
1. Open the attached “TestDedicatedServerBuild.zip” project
2. Click File > Build Settings…
3. Select Dedicated Server Platform, and set Target Platform to Linux
4. Click Window > Asset Management > Addressables > Groups
5. In the Addressables Groups window, click Build > New Build > Default Build Script
6. Observe the Console window

Expected results: No error message should be generated since the code should be ignored.
Actual results: The error message “Assets/Test/Test.cs(15,35): error CS1503: Argument 1: cannot convert from 'string' to 'bool'“ is generated.

Reproducible with: 1.21.19 (2023.1.0a1, 2023.2.7f1), 2.0.6 (2023.3.0b4)
Not reproducible with: 1.21.19 (2021.3.34f1, 2022.3.18f1)

Reproduced on: Ubuntu 22.04.3, macOS 13.6.3

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.