Skip to content

Commit 5db1865

Browse files
committed
Update README
1 parent d56e9ab commit 5db1865

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,15 +1348,6 @@ In Unity performance, MemoryPack is x3~x10 faster than JsonUtility.
13481348

13491349
![image](https://user-images.githubusercontent.com/46207/209254561-79ec18fe-c421-4d8c-9c86-b55276dd1a45.png)
13501350

1351-
1352-
Unity version's MemoryPack does not compatible with .NET MemoryPack in NuGet so can't do creating netstandard 2.1 dll in .NET and use in Unity. If you want to share type between .NET and Unity, share source-code, for example place source code in Unity directory and .NET project reference by code link.
1353-
1354-
```xml
1355-
<ItemGroup>
1356-
<Compile Include="..\ChatApp.Unity\Assets\Scripts\ServerShared\**\*.cs" />
1357-
</ItemGroup>
1358-
```
1359-
13601351
If shared code has Unity's type(`Vector2`, etc...), MemoryPack provides `MemoryPack.UnityShims` package in NuGet.
13611352

13621353
The `MemoryPack.UnityShims` package provides shims for Unity's standard structs (`Vector2`, `Vector3`, `Vector4`, `Quaternion`, `Color`, `Bounds`, `Rect`, `Keyframe`, `WrapMode`, `Matrix4x4`, `GradientColorKey`, `GradientAlphaKey`, `GradientMode`, `Color32`, `LayerMask`, `Vector2Int`, `Vector3Int`, `RangeInt`, `RectInt`, `BoundsInt`) and some classes(`AnimationCurve`, `Gradient`, `RectOffset`).

0 commit comments

Comments
 (0)