Hi Unity 5.1 is released and old networking is marked as deprecated, but there is no documentation on a new networking. I tried to move from old networking to new (I mostly use RPC calls) from info I got from Unite 2014's video on UNET, but it is not enough. When will be documentation available?
Hopefully soon, but you can access the new documentation from unity via Help -> Unity Manual / Scripting Reference until they update the online documentation.
Sadly enough it seems that a lot of the manual (online and offline) is still outdated or just incompatible with the released 5.1 build. For example, a lot of the default method calls shown on http://docs.unity3d.com/Manual/UNetManager.html just don't work as they are shown and the offline manual is even worse. I also still have the issues discussed here: http://forum.unity3d.com/threads/failed-to-read-the-id-for-the-match-maker.326167/ (Okay, this resolved itself a similar way as mentioned in the thread now. After opening multiple of the example networking projects some people posted (that all had the same problem) and repasting and spamming enter on the input field and restarting the Editor multiple times at some point it just started to work. Seems like it just doesn't set the property correctly at random.) And here: http://forum.unity3d.com/threads/unet-matchmaking-and-the-webplayer.332364/ Is it just me or is that a general problem? Running Unity 5.1.0f3 Personal 64Bit Editor.
@Necromantic It's not just you, I have a lot of problems with different names of functions and variables of the networking system. Sometimes functions in the manual don't even exist in the build (5.1.0f3).
I've been trying to document whatever incorrect information I come across in this thread: http://forum.unity3d.com/threads/hl...networkclient-ready-serverchangescene.341565/ It's a little tedious, but hopefully it can help people figure out a cypher for the encrypted HLAPI docs.
Some more (missing) examples: http://forum.unity3d.com/threads/more-examples-for-unitys-new-networking-classes.359525/ Please do add to that post if you feel that something is missing from the docs!
@_Adriaan Try using the Bug Reporter in Unity to report Documentations. There's a new category for it.
If you couldn't tell from seeing no dev posts for the past YEAR in this networking forum for anything related to UNET, HLAPI, Host Migration or Lobby, it's quite obvious that UNET HLAPI and anything relating to Unity online multiplayer is more or less abandoned by Unity. I called it back in September in a thread bumped for months and it was never denied: https://forum.unity3d.com/threads/unity-hello-is-there-anybody-out-there-p.445978/ I hope these docs and video will assist you. Although these docs are still 100x more useful than anything official that exists, fair warning I've abandoned it in favor of Photon (where I had a lobby running in 2hrs vs 2 months where it's still broke. And Photon is heavily documented and supported) so it's still outdated. I'm fairly certain none of these modules have even been updated or will be updated for 2017 since it's not on the road map, so will probably still be fine. I hope this helps you: https://forum.unity3d.com/threads/h...icial-documentation-please-contribute.446516/ Unity LAN games seem excellent as long as you don't have a lobby. However, if you use a lobby in any way, hope for reconnection or host migration, use HLAPI or UNET, run while you can. I'd love for the devs to follow up on their promises and can't wait for them to prove me wrong. However, I coded my entire game under the faith of promises that were never fulfilled and had to recode my entire game. I wouldn't wish this on the world to a fellow indie dev. I love Unity, just hate that they have 0 staff 0 support while completely abandoning not only these modules, but also their customers that are desperately trying to use it since it's still advertised when it shouldn't be. Find me in ANY other sub forum and I only have good things to say about them. Minus level 11
Oh yes. We spend several month by trying to figure out how to work with UNET only because "NetworkView.RPC is obsolete, use UNET". Unity always made a revolutions. With first Unity network with Mecanim, with NavMesh, with Asset Store! What a shame to look at this fail with UNET.
https://unity3d.com/ru/learn/tutorials/topics/multiplayer-networking/networking-player-health Devs missed assigning of value in the SyncVar hook Code (CSharp): using UnityEngine; using UnityEngine.UI; using UnityEngine.Networking; using System.Collections; public class Health : NetworkBehaviour { public const int maxHealth = 100; [SyncVar(hook = "OnChangeHealth")] public int currentHealth = maxHealth; // void OnChangeHealth (int health) { healthBar.sizeDelta = new Vector2(health, healthBar.sizeDelta.y); } } should be Code (CSharp): using UnityEngine; using UnityEngine.UI; using UnityEngine.Networking; using System.Collections; public class Health : NetworkBehaviour { public const int maxHealth = 100; [SyncVar(hook = "OnChangeHealth")] public int currentHealth = maxHealth; // void OnChangeHealth (int health) { currentHealth = health; // fix healthBar.sizeDelta = new Vector2(health, healthBar.sizeDelta.y); } }