Skip to content

Calling SetParent causes NetworkObject to have an incorrect position on clients. #2959

@qjonathan

Description

@qjonathan

Description

With interpolation enabled when the server changes the parent of a NetworkObject the position on the clients is wrong for 1 frame.

Reproduce Steps

With interpolation enabled on the NetworkTransform

  1. Player A goes next to NetworkObject,
  2. The server attach the networkobject to Player A by calling SetParent,
  3. On the Client(Player B) the NetworkObject position is now wrong.

Expected Outcome

We did not have that issue when using 1.2.0, we just updated to 1.9.1 and one of the gameplay mechanics suddenly started acting weird. Disabling interpolation seems to fix the issue but will cause the visuals to be less smooth

Environment

  • OS: Windows
  • Unity Version: 2022.3.30f
  • Netcode Version: 1.9.1

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions