com.unity.transport 0.4.0-preview.3

com.unity.transport

Notes: processedReleased August 21, 2020

Browse versions

PreviousNext

Unity Compatibility

Minimum Unity: 2020.1 (2f1)

Features

  • Added a new fragmentation pipeline which allows you to send messages larger than one MTU. If the `FragmentationPipelineStage` is part of the pipeline you are trying to send with the `NetworkDriver` will allow a `requiredPayloadSize` larger than one MTU to be specified and split the message into multiple packages.

🔄 Changes

  • The methods to read and write strings in the `DataStreamReader`/`DataStreamWriter` have been changed to use `FixedString` instead of `NativeString`. The name of the methods have also changed from `ReadString` to `ReadFixedString64` - and similar changes for write and the packed version of the calls. The calls support `FixedString32`, `FixedString64`, `FixedString128`, `FixedString512` and `FixedString4096`.
  • Minimum required unity version has changed to 2020.1.2.

🔧 Bug Fixes

  • ### Upgrade guide
  • The data stream methods for reading and writing strings have changed, they now take `FixedString64` instead of `NativeString64` and the names have changed as follows: `DataStreamReader.ReadString` -> `DataStreamReader.ReadFixedString64`, `DataStreamReader.ReadPackedStringDelta` -> `DataStreamReader.ReadPackedFixedString64Delta`, `DataStreamWriter.WriteString` -> `DataStreamWriter.WriteFixedString64`, `DataStreamWriter.WritePackedStringDelta` -> `DataStreamWriter.WritePackedFixedString64Delta`.
  • The transport now requires Unity 2020.1.2.