Unity5.1 new network engine UNET (I) Summary 2, unity5.1unet

Source: Internet
Author: User
Tags dedicated server unity network

Unity5.1 new network engine UNET (I) Summary 2, unity5.1unet

Sun Guangdong


Users with two network functions:
• You can use Unity to create multiplayer games. These users should start to use NetworkManager or High Level API.
• Users build network infrastructure or advanced multiplayer games. These users should start using the NetworkTransport API.


High level scripting API high-level script API


The Unity network has a "high-level" script API (which we call HLAPI ). Using this method, you can access the command to cover the most common requirements. You do not need to worry about the execution details of the "lower level. HLAPI, you can:

• Use Network Manager to control the Network status of the game.
• The host is a player client. Operate "Network Manager". Games
• Use the data of a general serialization program for serialization.
• Send and receive messages.
• Send network commands from the client to the server.
• Remote Procedure Call (Rpc) from the server to the client.
• Send network events from the server to the client.


Engine and Editor Integration


The Unity network is integrated into the engine and editor, allowing you to build your multiplayer games using components and visual aids. It provides:

• NetworkIdentity component of the network object.
• NetworkBehaviour network script.
• You can configure automatic Object synchronization.
• Automatically synchronized script variables.
• Allows you to place network objects in Unity.
• Network Components


Internet Services

Unity provides Internet services to support your games throughout production and release, including:
• Matchmaking service
• Create matches and advertise matches.
• List available matches and join matches.
• Relay server
• Game-play over internet with no dedicated server.
• Routing of messages for participant ipants of matches.


NetworkTransport Real-Time Transport Layer

Unity provides the real-time transmission layer:

• Optimized the UDP-based protocol.
• Multi-channel design to avoid head-of-line blocking issues Multi-channel design to avoid line blocking of headers
• Each channel supports various levels of levels (QoS ).
• Flexible network topology, supporting peer-to-peer or client-server architecture.


High Level API


High-level API (HLAPI) is a system for building multiplayer game functions of Unity games. It is built on a lower level of transmission real-time communication layer and handles many common tasks of multiplayer games. The Transport Layer supports any form of network topology. HLAPI is an authoritative server system. Although it allows clients and servers to participate at the same time, there is no dedicated server process. This work combines Internet services that allow multiplayer games that will be played on the Internet with little work from developers.


HLAPI is a new set of network command integration for Unity in the new namespace. UnityEngine. Networking is concentrated in usability and iterative development, such as providing useful services for multiplayer games:

• Message Processing Program
• General high-performance serialization
• Distributed Object Management
• Status Synchronization
• Network classes: Server, Client, Connection, etc


HLAPI is added by a series of layers:







Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.