Skip to content

chore: remove standalone relay#3893

Merged
EmandM merged 1 commit intodevelop-2.0.0from
chore/remove-relay-sdk-reference
Mar 12, 2026
Merged

chore: remove standalone relay#3893
EmandM merged 1 commit intodevelop-2.0.0from
chore/remove-relay-sdk-reference

Conversation

@EmandM
Copy link
Member

@EmandM EmandM commented Mar 9, 2026

Purpose of this PR

Remove reference to deprecated standalone relay SDK

Jira ticket

UUM-131561

Changelog

  • Removed reference to deprecated standalone relay SDK

Documentation

  • No documentation changes or additions were necessary.

Testing & QA (How your changes can be verified during release Playtest)

Functional Testing

Manual testing :

  • Manual testing done

Automated tests:

  • Covered by existing automated tests
  • Covered by new automated tests

Does the change require QA team to:

  • Review automated tests?
  • Execute manual tests?
  • Provide feedback about the PR?

If any boxes above are checked the QA team will be automatically added as a PR reviewer.

Backports

I don't think this needs a backport?

@EmandM EmandM requested review from a team and NoelStephensUnity as code owners March 9, 2026 18:38
{
"name": "com.unity.services.relay",
"expression": "1.0",
"define": "RELAY_SDK_INSTALLED"
Copy link
Member

Choose a reason for hiding this comment

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

In the ticket there few possible answers so I just wonder what is the final conclusion, why we don't need this define?

Copy link
Member Author

Choose a reason for hiding this comment

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

The com.unity.services.relay package is very deprecated. The new package is com.unity.services.multiplayer. I'm also not convinced this file was doing anything. There were changes made to the NetworkManagerEditor when this file was landed. I think this file has extension methods that were used by stuff that has since been removed from the editor

Copy link
Member

Choose a reason for hiding this comment

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

@michalChrobot
I did a double take too because the relay package is still "functional" in 6000.70f1.
Just as a personal sanity check, I went ahead and:

  • Created a new project with 6000.0.70f1.
  • Installed Relay (this is what used to create the RELAY_SDK_INSTALLED define).
  • Installed NG0 v2.1.0. (using Develop-2.0.0)
  • Added a NetworkManager with UnityTransport to the SampleScene.

The results where:

  • Relay evidently still works but is obviously marked as deprecated with information on what to upgrade to.
  • Only with the deprecated relay package installed does the RELAY_SDK_INSTALLED get defined.
    • With this defined, NetworkManagerRelayIntegration becomes declared.
    • This file is the only file that RELAY_SDK_INSTALLED is used.
      • It used to be there was additional code in the NetworkManager.
        • In v1.x.x, here is where it is used.
          • This defines RELAY_INTEGRATION_AVAILABLE (v1.x.x only) which then exposed the "helper tool".
          • RELAY_INTEGRATION_AVAILABLE does not exist in v2.x.x.
  • Nothing in NGO references the NetworkManagerRelayIntegration.
    • The visual part was pulled out awhile back, but it looks like this was not removed with it.
image

Looks like a very safe removal and really should have been removed when the relay helper tool was removed awhile back.

👍

Copy link
Member

Choose a reason for hiding this comment

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

Ah, right, totally agree then, especially that as far as I remember BossRoom/Asteroids are using the updated package

Copy link
Member

@NoelStephensUnity NoelStephensUnity left a comment

Choose a reason for hiding this comment

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

Good catch!
No need to have that hanging around anymore.
💯

@michalChrobot
Copy link
Member

There is no changelog mention so maybe we can just add this and land

@NoelStephensUnity
Copy link
Member

There is no changelog mention so maybe we can just add this and land

Yeah... it is a behind the scenes kind of change that will have no impact on users. 👍

@michalChrobot
Copy link
Member

ok, fair point then

@EmandM EmandM merged commit f227bfe into develop-2.0.0 Mar 12, 2026
23 checks passed
@EmandM EmandM deleted the chore/remove-relay-sdk-reference branch March 12, 2026 14:58
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.

3 participants