Skip to content

fix: read scripting backend on dedicated server builds - #2882

Merged
bitsandfoxes merged 4 commits into
fix/mono-linker-http-configfrom
fix/dedicated-server-scripting-backend
Oct 14, 2026
Merged

bitsandfoxes merged 4 commits into
fix/mono-linker-http-configfrom
fix/dedicated-server-scripting-backend

Conversation

@bitsandfoxes

Copy link
Copy Markdown
Contributor

Follow up of #2858 where a gap surfaced between server and player builds.

The build report says platformGroup == Standalone for both a player build and a server builds. NamedBuildTarget.FromBuildTargetGroup(Standalone) always returns Standalone, so the code read the player's scripting backend even when building the server. The only way to tell the two apart is the subtarget, which report.summary.GetSubtarget<StandaloneBuildSubtarget>() returns. The new NamedBuildTargets.From helper is just that rule: Standalone group + Server subtarget → NamedBuildTarget.Server; anything else → FromBuildTargetGroup(group).

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b3164f3. Configure here.

Comment thread src/Sentry.Unity.Editor/NamedBuildTargets.cs Outdated
@bitsandfoxes
bitsandfoxes merged commit ad0b6d0 into fix/mono-linker-http-config Oct 14, 2026
116 of 117 checks passed
@bitsandfoxes
bitsandfoxes deleted the fix/dedicated-server-scripting-backend branch October 14, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant