Skip to content

ClientNetworkTransform does not allow for server to commit after changing ownership #2563

@AlexEnnerfelt

Description

@AlexEnnerfelt

Description

If a NetworkObject that has a ClientNetworkTransform (implemented as per the documentation) the Host/Server can commit the transform while it has not yet changed ownership. When another client takes ownership, the ability to commit transform is removed from the Server (so far so good) If the server then has the ownership returned to it, it will still not be allowed to commit transform.

Reproduce Steps

  1. Set up NetworkObject with ClientNetworkTransform
  2. Change ownership to client 1 (server loses right to commit transform)
  3. Change ownership to client 0 (the Host)
  4. The host still can't commit transform

Actual Outcome

The Host cannot commit transform for an owned object with ClientNetworkTransform when it has previously been owned by another client.

Expected Outcome

The Host should be treated as a client and regain right to commit transform on a ClientNetworkTransform despite having previously been owned by another client.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

  • OS: Wibndows 11
  • Unity Version: 2022.2.19
  • Netcode Version: 1.4.0
  • Netcode Commit: latest release in the unity registry

Additional Context

Add any other context about the problem here. Logs, code snippets would be useful here but please also consider attaching a minimal Unity project that reproduces the issue.

Metadata

Metadata

Labels

priority:highThis issue has high priority and we are focusing to resolve itstat:importedStatus - Issue is tracked internally at Unitytype:bugBug Report

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions