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
- Editor crashes and a window with "GetManagerFromContext: pointer to object of manager 'MonoManager' is NULL (table index 5)" error is shown when launching a freshly created project
- Editor Windows dragging behavior is erratic/glitchy when a specific multi-display setup is used and the Editor window is not on the main display
- Meta Quest missing an icon in Build Profiles window in U6.0
- Foldout arrow indent is misaligned in the Inspector when used for Arrays or Lists
- Material import pipeline strips properties when it is added with a script
Add comment