Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

having some issues with this, i installed newtonsoft.json on visual, added the corresponding dll files to the project folder.
yesterday it worked, but crashed after leaderboard was showing on the internet, today i changed the version of newtownsoft to be more accurate to my unity version and now cant upload at all.
getting the:

Failed to upload leaderboard entry.

UnityEngine.Debug:LogError (object)

Leaderboard:<SetLeaderboardEntry>b__5_0 (bool)

do you know how to fix this? 
if i dont import the dll files to my project folder i cant even run the game.
now i dont remember what dll i put yesterday to make it work halfway (until the crash after leaderboard loaded at the end, after keaderboard loaded i saw correct values but then game became frozen and unclickable)

Dan.Main.LeaderboardCreatorBehaviour/<HandleRequest>d__4:MoveNext ()

any ideas ?

Hello!

Here are the recommended steps to downloading the latest Newtonsoft.Json package for Unity projects. Prior to following the steps mentioned below, I would recommend removing the previously added DLL of the package and reopening the project as to avoid any errors.

  1. Open the Package Manager window in your Unity project.
  2. Click the plus icon on click "Add package from git URL"
  3. Paste this in the URL field and then press Add:
com.unity.nuget.newtonsoft-json@3.0


(+1)(-1)

amazing thank you !!!!!!

Hey, one small problem: When i try to download it, unity says:

 ´Cannot find a version of package [com.unity.nuget.newtonsoft-json] compatible with this Unity version (2021.3.22f1). [NotFound].

UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()´

I am using version 2021.3.22f1, can i download it somehow else? Or am i just doing something wrong?

Thank you,

Reko

(+1)

Hello!

Newtonsoft.Json unfortunately seems to be incompatible with this version of Unity, so either download and use an older version or consider reaching out to Unity for support.

Unfortunatly i started to program the whole game in this version, so i don´t really wanna copy and paste and do that stuff to another version. But thank you for help and i will try to get reply from Unity support.

Reko

(1 edit) (+1)

I was having the same problem with this Unity version but managed to download it by clicking on "Add package by name..." instead and pasting: com.unity.nuget.newtonsoft-json

Hope this helps.

Im gonna try. Thanks for advice!