Search Issue Tracker
By Design
Votes
0
Found in
5.6.0b3
Issue ID
869805
Regression
No
[LobbyManager] Unable to call [RpcFunction] or use [SyncVar(hook)] for LobbyPlayer object in OnLobbyServerSceneLoadedForPlayer
Unable to call [RpcFunction] or use [SyncVar(hook="<function>")] for LobbyPlayer object in the OnLobbyServerSceneLoadedForPlayer callback
The idea of using NetworkLobbyManager is to configure LobbyPlayer object and then "transfer" that configuration to the GamePlayer object in the OnLobbyServerSceneLoadedForPlayer callback. At the same callback user need to disable LobbyPlayer object as it is not needed anymore - but, as the OnLobbyServerSceneLoadedForPlayer callback is called only on the Server - the user needs to use [RpcFunction] or [SyncVar(hook="<function>")] (put disabling functionality to one of those functions) to disable LobbyPlayer object on the Client.
->
BUT the [RpcFunction] or [SyncVar(hook="<function>")] is not calling on the Client on LobbyPlayer object (--- probably because some authority problems ...)
How we can reproduce it using the example you attached
--- please see attached video in comments ---
1 Open attached project
2 Open scene "lobbyScene"
3 Build and Run Standalone
4 Run "Server only" in Standalone
5 Press Play in Editor
6 Run "Client" in Standalone and then "Start"-button
Actual result:
notice that there is no any logs in the Console
Expected result:
2 logs should appear in the Console:
"---RpcDisableObject---"
"---disable---true"
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment