Unity3dSampleTemplate icon indicating copy to clipboard operation
Unity3dSampleTemplate copied to clipboard

Issue with Unity 2020.1.6f1 and Walletconnect

Open Sterling-Malory-Archer opened this issue 3 years ago • 2 comments

Hi everyone,

I recently implemented Wallconnect.Unity to my Unity project.

I also added Walletconnect.Nethereum folder to my Unity project.

When I import the DLLs from https://github.com/Nethereum/Unity3dSimpleSampleNet461/tree/master/Assets/Plugins, I get this error:

Assets\WalletConnectUnity\WalletConnectSharp.NEthereum\WalletConnectNEthereumExtensions.cs(56,21): 
error CS0012: The type 'JsonSerializerSettings' is defined in an assembly that is not referenced. 
You must add a reference to assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'.

Any help is kindly appreciated

Sterling-Malory-Archer avatar Oct 22 '21 08:10 Sterling-Malory-Archer

@Sterling-Malory-Archer that is great (you have integrated it with WalletConnect). Unity in the latest versions it includes the json.net library with is aot compatible and in recent builds of Nethereum (when packaging the dlls this is what it is included, although you need to remove it as it is duplicated). Now for WalletConnect the reference the normal version, so this might be an issue. You might need to copy the source directly. It is my plan to provide an example when possible of this, but first need to simplify the Unity packaging.

juanfranblanco avatar Oct 22 '21 10:10 juanfranblanco

@Sterling-Malory-Archer that is great (you have integrated it with WalletConnect). Unity in the latest versions it includes the json.net library with is aot compatible and in recent builds of Nethereum (when packaging the dlls this is what it is included, although you need to remove it as it is duplicated). Now for WalletConnect the reference the normal version, so this might be an issue. You might need to copy the source directly. It is my plan to provide an example when possible of this, but first need to simplify the Unity packaging.

Hi Juan,

Thank you for responding, so you said I should copy the source directly, can you tell me which source?

So I should implement This SimpleSampleNet461 libraries and Walletconnect, delete the Newtonsoft.Json from the Walletconnect import and Nethereum one?

I am a total beginner so any help is kindly appreciated!

Sterling-Malory-Archer avatar Oct 22 '21 11:10 Sterling-Malory-Archer