
- Hurtworld v2 engine install#
- Hurtworld v2 engine update#
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. Hurtworld v2 engine update#
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. Best Region selection and a system for callbacks are now done in the Realtime API. There are two distinct namespaces for the two layers: Photon.Pun and Photon.Realtime. PUN 2 now includes and makes use of the Realtime API, which is less Unity specific. Below, you will find the biggest changes but the list may be incomplete. Hurtworld v2 engine install#
To update, it's best to completely remove PUN and do a clean install of PUN 2 to make the necessary API and logic changes. If you use PUN Plus (v1.x) and want to update to PUN 2, use your existing AppId with the PUN 2 Free package.
It is a separate package from PUN 1.x so you can choose when to update. PUN 2 aggregates a lot of breaking changes and updates in one package but the overall usage will be similar to PUN as you know it.