Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
## [2.0.0-pre.6] - 2023-01-13

### New features
* Added a `NetworkConnection.ToFixedString` method to allow logging network connections from Burst.
  • Loading branch information
Unity Technologies committed Jan 13, 2023
1 parent a29e74a commit fe9ce94
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change log

## [2.0.0-pre.6] - 2023-01-13

### New features
* Added a `NetworkConnection.ToFixedString` method to allow logging network connections from Burst.

## [2.0.0-pre.5] - 2023-01-12

### Changes
Expand Down
7 changes: 7 additions & 0 deletions Runtime/NetworkConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ public override string ToString()
return $"NetworkConnection[id{InternalId},v{Version}]";
}

/// <summary>Return a fixed string representation of the connection.</summary>
/// <returns>Fixed string representation of the connection.</returns>
public FixedString128Bytes ToFixedString()
{
return FixedString.Format("NetworkConnection[id{0},v{1}]", InternalId, Version);
}

internal int InternalId => m_ConnectionId.Id;
internal int Version => m_ConnectionId.Version;
}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.unity.transport",
"displayName": "Unity Transport",
"version": "2.0.0-pre.5",
"version": "2.0.0-pre.6",
"unity": "2022.2",
"unityRelease": "0a18",
"description": "Unity network transport layer - the low-level interface for connecting and sending data through a network",
Expand All @@ -14,16 +14,16 @@
"com.unity.transport.tests": "0.0.0"
},
"_upm": {
"changelog": "### Changes\n* Revert to Collections 2.1.0-pre.6 as pre.7 is not promoted yet."
"changelog": "### New features\n* Added a `NetworkConnection.ToFixedString` method to allow logging network connections from Burst."
},
"upmCi": {
"footprint": "5fb8d0de53e3c978343415161ff932abc89ade11"
"footprint": "b73f1f937329188e851a12384466beba96be832f"
},
"documentationUrl": "https://docs.unity3d.com/Packages/[email protected]/manual/index.html",
"repository": {
"url": "https://github.cds.internal.unity3d.com/unity/com.unity.transport.git",
"type": "git",
"revision": "0fbd7b4b034a044c92c7b55c3a6e2c860bd5a1f5"
"revision": "d4142945f605514459ee1595f609366ac3ac3194"
},
"samples": [
{
Expand Down

0 comments on commit fe9ce94

Please sign in to comment.