FirstGearGames / FishNet

FishNet: Unity Networking Evolved.
Other
1.39k stars 149 forks source link

Predicted Spawned object owner not receiving BufferLast ObserverRpc #815

Open maxkratt opened 1 week ago

maxkratt commented 1 week ago

General Unity version: 6000.0.23f1 Fish-Networking version: 4.5.5 Discord link: https://discord.com/channels/424284635074134018/1034477094731784302/1306138937248583744

Description When a client predicted spawns an object and that object calls an ObserversRpc with BufferLast in its OnStartServer, the client who spawned it will not receive the ObserversRpc.

Replication Steps to reproduce the behavior:

  1. Download and import example
  2. Open example scene in two editors
  3. Run the example, it should start as a host in one and a client in the other.
  4. The host will get two ObserversRpc messages, the client will only get the one from the host's created object.

Expected behavior ObserversRpc should correctly be sent to clients that predicted spawn the object.

Screenshots Host getting both messages: Screenshot 2024-11-13 114450

Client only getting the host's message: Screenshot 2024-11-13 114459

Example PredictedSpawnedObserverIssue.zip