Search Issue Tracker
Fixed in 5.3.1
Votes
0
Found in
5.4.0a5
Issue ID
751239
Regression
No
When Launching Host and spawn Spawnable Prefab - it calls both OnStartAuthority() and OnStopAuthority() - what is wrong
What happened
If Spawnable Prefab has "Local Player Authority" set and we do NetworkServer.SpawnWithClientAuthority():
1 On the host after NetworkServer.SpawnWithClientAuthority() it calls both OnStartAuthority and OnStopAuthority
2 when server and client are different instances -
OnStartAuthority() called on the client (correct)
OnStopAuthority() called on the server (wrong)
How we can reproduce it using the example you attached
1 Open attached project and open scene "scene 1"
2 Press Play
3 Press "LAN Host" (- cube should appear in the scene)
4 Press "Space" button on keyboard
Actual result: you will see 2 logs:
Object OnStopAuthority, hasAuthority = False
and
Object OnStartAuthority, hasAuthority = True
Expected result: only OnStartAuthority() should be called
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Brush Size in the Inspector window does not update when the Brush Size in Scene View is changed
- "ArgumentOutOfRangeException" errors are thrown every time a keyboard key is pressed when renaming a component in UI Builder with a symbol and changing the name after label attribute warning
- Values in "Rect Transform" component are only partially updated when changing values in Prefab Mode
- Same Asset Type Focused Inspectors do not repaint when menus are manipulated
- Bool or Trigger Parameters can be selected via right clicking to the right of a Parameter control in the Animator Window
Add comment