diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0b37609..855d322 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/Runtime/NetworkConnection.cs b/Runtime/NetworkConnection.cs
index 823fda7..91b59a4 100644
--- a/Runtime/NetworkConnection.cs
+++ b/Runtime/NetworkConnection.cs
@@ -191,6 +191,13 @@ public override string ToString()
return $"NetworkConnection[id{InternalId},v{Version}]";
}
+ /// Return a fixed string representation of the connection.
+ /// Fixed string representation of the connection.
+ 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;
}
diff --git a/package.json b/package.json
index 33e57ac..7cfd91f 100644
--- a/package.json
+++ b/package.json
@@ -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",
@@ -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/com.unity.transport@2.0/manual/index.html",
"repository": {
"url": "https://github.cds.internal.unity3d.com/unity/com.unity.transport.git",
"type": "git",
- "revision": "0fbd7b4b034a044c92c7b55c3a6e2c860bd5a1f5"
+ "revision": "d4142945f605514459ee1595f609366ac3ac3194"
},
"samples": [
{