http://blog.csdn.net/u010019717/article/details/46873153
Sun Guangdong 2015.7.14
Overall feeling that the advent of the new network engine did not bring too much sensation, at least relative to the Ugui launch,
But the official forum is still the same as Ugui, providing a variety of discussion posts. It includes a lot of small demos to share, etc.
In fact, all the same, let us look at the content it!
Unet Sample projects-
Attach to this article some sample projects about the new networked system. All of these projects use the high level network API.
Unity 5 Network Lobby Example (Beta): https://www.assetstore.unity3d.com/en/#!/content/41836
2dshooter -
is a 2d shooting game, using arrow keys and SPACEBAR in the "Start" scene.
Tanks -
is a 2d tank example, using the mouse and arrow keys, in the "title" scene.
Invaders -
is a 2d arcade game that uses arrow keys and SPACEBAR in the "StartMenu" scene.
Networkstarter -
is a simple 3d boxes, it uses the multiplayer lobby multiplayer lobby, in the "Lobbynewgui" scene.
Move -
is a simple 3d client movement test, using arrow keys and SPACEBAR in the "Ballz" scene.
Attached Files:
- Invaders.zip
- 2dshooter.zip
- Move.zip
- Networkstarter.zip
- Tanks.zip
Networking presentation and sample project:
This is a link to the new multiplayer networking system in the Unite 2014 presentation. A little old, but still a good overview and use Unet to browse.
Character Controller Sample project:
The attachment is a simple role Controller sample project.
This is not animating.
(There is a networktransform bug with syncing rotation for charactercontrollers.) This projects contains a workaround script, which can be used until, is fixed).
Master Server Sample Project:
This is "Masterserver", similar to the old Masterserver based on the Raknet network system. The project is implemented using the HLAPI messaging system and is not invoked using [Command]s and [Clientrpc], so it uses the Messagebase class to define the message handler function with the registered. The Master.cs file contains the network protocols that are generated using these messages.
There are two components, Masterserver and masterclient. Masterclient has an API similar to the old network system. There is a simple UI control for each component.
Masterserver uses the Networkserver class and listens for connections from masterclients-using the Networkclient class. It allows the client to register a list of host names with game mode and requests through game mode. The list of returned hosts includes the IP address and port.
So this can be used for local matchmaking-not over the Internet unless all hosts have a public IP address.
Unity5.1 new network engine unet (ii) UNET official recommended demo case