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
- [WebGL]"TypeError: Cannot read properties of undefined (reading 'length')" error is thrown when starting the Player when config.autoSyncPersistentDataPath is set to true
- [UaaL] Freeze on "GetLightingSettingsOrDefaultsFallback()" when rotating device screen after unloading Unity framework
- A white vertical artifact is present when any Material from HDRI is used for a panoramic skybox
- Editor freezes when handling Havok collision interactions between a thin collider and the player controller
- No blue outline is shown on a folder in the Project tab when an external file is being dragged over the folder
Add comment