An example about how to integrate ICP.NET into Unity.
- Install Unity 2021.3LTS;
- Open the
UnityProject
; - Open the
Assets\Scenes\SampleScene.unity
; - Play in the Unity Editor.
Here describes how the managed dlls under UnityProject\Packages\com.ic.agent\ICP.NET
are generated.
-
EdjCase.ICP.Agent.dll
&EdjCase.ICP.Candid.dll
are compiled from ICP.NET directly, they're targeted to .NET standard 2.0, so it’s okay to use them directly. -
For all the other dependencies, including
- Chaos.NaCl.dll (1.0.0)
- Dahomey.Cbor.dll (1.16.1)
- System.Collections.Immutable (6.0.0)
- System.Runtime.CompilerServices.Unsafe (6.0.0)
- System.IO.Pipelines (6.0.1)
- Microsoft.Bcl.HashCode.dll (1.1.1)
Download the packages with the correct version from https://www.nuget.org/packages and choose the dll with netstandard2.0 version.