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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Add comment