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

Networking

-

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"

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.