Skip to content

Spawning pooled object doesn't always sync initial pos #949

Description

@maxkratt

General
Unity version: 6
Fish-Networking version: 4.6.12R
Discord link: https://discord.com/channels/424284635074134018/1400089668040528062

Description
When instantiating an object at a location, despawn pooling it, and then respawning it at a new location, the client sees the object spawned at the old location instead of the new one.

Unity_H6QzUW2nrc.mp4

Replication
Steps to reproduce the behavior:

  1. Import example
  2. Run 1 host and 1 client
  3. Press "F" in host and see spawned cube is correctly placed in server and client.
  4. Press "F" again in host to despawn and pool the cube.
  5. Press "F" in host a last time to respawn the cube at a new position, client doesn't correctly spawn it there.

Expected behavior
The client should get the initial transform details synced with it, even from the pool.

Example

PooledPosBug.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReceivedThe issue appears to be complete and will be reviewed.Resolved Pending ReleaseIssue is resolved and will be available on the noted version.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions