Instead the AppVersion parameter set from the Unity Editor in the PhotonServerSettings, AppSettings section is used as PhotonNetwork.GameVersion. PhotonNetwork.ConnectUsingSettings() no longer takes gameVersion parameter.The tasks it covered are either now handled directly in the PhotonNetwork class or in the PhotonNetwork.NetworkingClient. ![]() When joined to a room you can get it via. You can set it during room creation via RoomOptions.CleanupCacheOnLeave. In PUN2 this setting is no longer global but per room. PhotonNetwork.isNonMasterClientInRoom is gone.You can optionally cache it, update it and clear it when needed. When enabled, you can get lobby statistics list from ILobb圜allbacks.OnLobbyStatisticsUpdate(List lobbyStatistics) callback. PhotonNetwork.LobbyStatistics is gone.You get friends list from IMatchmakingCallbacks.OnFriendListUpdate(List friendList) callback. You get rooms list and updates from ILobb圜allbacks.OnRoomListUpdate(List roomList) callback. Unless you need a lobby, don't join them. toJoinLobby and ServerSettings.JoinLobby are gone.Inherit this class and override as needed. MonoBehaviourPunCallbacks implements most callbacks.For callbacks a class has to implement an interface and register itself as interested.Many callbacks, methods and fields were renamed for various reasons.Only ConnectUsingSettings() is making use of the PhotonServerSettings. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |