Skip to content

Conversation

NoelStephensUnity
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity commented Oct 20, 2025

Purpose of this PR

When MULTIPLAYER_TOOLS_1_0_0_PRE_7 is defined there is code within UnityTransport that did not take the ClientIdToTransportId into consideration. This resolves that issue.

This PR also handles the deprecation of GetInstanceID and replaces all uses with GetEntityId when using newer versions of Unity 6.

Jira ticket

NA

Changelog

NA (issue landed in develop-2.0.0 but has not been released in a package)

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:

  • [ X ] Covered by existing automated tests
    • Added multiplayer tools to testproject which should avoid missing this kind of issue in the future.
  • 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

No back port required.

When MULTIPLAYER_TOOLS_1_0_0_PRE_7 is defined there is code within UnityTransport that did not take the ClientIdToTransportId into consideration. This resolves that issue.
@NoelStephensUnity NoelStephensUnity added the port:1.x-needed This issue needs to be ported to 1.X branch label Oct 20, 2025
Updating packages.
Adding multiplayer tools to assure nothing that uses an asmdef defined define breaks if changes are made.
@NoelStephensUnity NoelStephensUnity marked this pull request as ready for review October 20, 2025 17:23
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner October 20, 2025 17:23
Fixing whitespace.
More whitespace issues.
@michalChrobot
Copy link
Collaborator

@NoelStephensUnity @EmandM I wonder if we should even consider such changes since

  1. Multiplayer Tools package 1.X is not really supported anymore. All work and editor manifests are focused on 2.X version
  2. All editors over 6000.0 (all editors supported by NGOv2.X) have at minimum tools v2.1.0

so I would argue for checking if anyone is using this define (not sure if we can do this) and potentially we can even remove it

image

@NoelStephensUnity
Copy link
Collaborator Author

@NoelStephensUnity @EmandM I wonder if we should even consider such changes since

  1. Multiplayer Tools package 1.X is not really supported anymore. All work and editor manifests are focused on 2.X version
  2. All editors over 6000.0 (all editors supported by NGOv2.X) have at minimum tools v2.1.0

so I would argue for checking if anyone is using this define (not sure if we can do this) and potentially we can even remove it

image

Yeah, the original PR did not back port... but I am on the same page. It most likely would be better to focus our time on v2.x things.

@NoelStephensUnity NoelStephensUnity removed the port:1.x-needed This issue needs to be ported to 1.X branch label Oct 21, 2025
@NoelStephensUnity NoelStephensUnity enabled auto-merge (squash) October 21, 2025 15:58
Making adjustment for GetInstanceID being deprecated and replacing with GetEntityId.
Missed a few `GetInstanceID` uses and updating to use `GetEntityId`.
@NoelStephensUnity NoelStephensUnity merged commit 4b99f27 into develop-2.0.0 Oct 22, 2025
24 of 25 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fix/unitytransport-updates-missed-tools-define-pre-7 branch October 22, 2025 07:59
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