您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Jacob Stove Lorentzen ebccd32c Branch with Beta packages included. 3 年前
..
Documentation~ Branch with Beta packages included. 3 年前
Runtime Branch with Beta packages included. 3 年前
Tests Branch with Beta packages included. 3 年前
.gitattributes Branch with Beta packages included. 3 年前
.gitmodules Branch with Beta packages included. 3 年前
CHANGELOG.md Branch with Beta packages included. 3 年前
CHANGELOG.md.meta Branch with Beta packages included. 3 年前
DESIGN.md Branch with Beta packages included. 3 年前
DESIGN.md.meta Branch with Beta packages included. 3 年前
LICENSE.md Branch with Beta packages included. 3 年前
LICENSE.md.meta Branch with Beta packages included. 3 年前
Pipfile Branch with Beta packages included. 3 年前
Pipfile.meta Branch with Beta packages included. 3 年前
README.md Branch with Beta packages included. 3 年前
README.md.meta Branch with Beta packages included. 3 年前
Runtime.meta Branch with Beta packages included. 3 年前
Tests.meta Branch with Beta packages included. 3 年前
package.json Branch with Beta packages included. 3 年前
package.json.meta Branch with Beta packages included. 3 年前

README.md

Welcome

Welcome to the Unity Transport repository!

The new Unity Transport Package which will replace the UNet low-level API. The preview of the transport package supports establishing connections and sending messages to a remote host. It also contains utilities for serializing data streams to send over the network.

Transport CI summary

ReleaseBadge ReleaseBadge

Documentation

For more information about the Transport package, please see the Unity Transport Documentation. The site includes guides, API reference, and release notes.

A changelog is also available in the package.

Connect

See the Multiplayer forum to ask questions and connect with Transport.

Samples

All samples are in /TransportSamples~.

Ping

The ping sample is a good starting point for learning about all the parts included in the transport package. The ping client establishes a connection to the ping server, sends a ping message and receives a pong reply. Once pong is received the client will disconnect.

It is a simple example showing you how to use the new Unity Transport Package. Ping consists of multiple scenes, all found in sampleproject/Assets/Scenes/.

  • PingMainThread.unity - A main-thread only implementation of ping.
  • Ping.unity - A fully jobified version of the ping client and server.
  • PingClient.unity - The same jobified client code as Ping.unity, but without the server.
  • PingServer.unity - The dedicated server version of the jobified ping. A headless (or Server Build in 2019.1) Linux 64 bit build of this scene is what should be deployed to Multiplay.
  • PingECS.unity - An ECS version of the jobified ping sample.

Soaker

A stress test which will create a set number of clients and a server in the same process. Each client will send messages at the specified rate with the specified size and measure statistics.

Pipeline

An example of the pipelines feature that offers layers of functionality on top of the default socket implementation behaviour.