MiloszKrajewski / K4os.Compression.LZ4

LZ4/LH4HC compression for .NET Standard 1.6/2.0 (formerly known as lz4net)
MIT License
675 stars 77 forks source link

excuse me, it work to Unity Engine? #66

Closed qcbf closed 2 years ago

qcbf commented 2 years ago

"1.2.16 Source code" copy to Unity, i get many error. what did i miss. thank very much Snipaste_2021-12-27_16-51-20

MiloszKrajewski commented 2 years ago

It should, but I don't know because I'm not using Unity - but it promises to be compatible with .NET Standard. Maybe @redwyre can help?

redwyre commented 2 years ago

Sure, if you're using Unity 2020 or earlier it is only compatible with .net standard 2.0. You will need to copy the other dependencies like System.Memory, but downloading from nuget and adding to your Unity Project.

An easier way to make this work would be to a dummy library project (netstandard2.0) and add the nuget references for K4os.Compression.LZ4 and System.Memory, then just copy everything in the output directory to your Unity Project. No need to compile from source.

qcbf commented 2 years ago

"1.2.16 Source code" copy to Unity, i get many error. what did i miss. thank very much Snipaste_2021-12-27_16-51-20

thank everyone