Cammin / LDtkToUnity

Unity importer for the LDtk level editor
https://cammin.github.io/LDtkToUnity
MIT License
381 stars 38 forks source link

Unity GUID error #23

Closed stickynoteme closed 3 years ago

stickynoteme commented 3 years ago

updated LDtkUnity today and now I'm getting this error:

GUID [8c4bfcb5b17948478ccb955bccff9652] for asset 'Packages/com.unity.nuget.newtonsoft-json/Runtime/Newtonsoft.Json.dll' conflicts with:
  'Packages/jillejr.newtonsoft.json-for-unity/Plugins/Newtonsoft.Json Editor/Newtonsoft.Json.dll' (current owner)
We can't assign a new GUID because the asset is in an immutable folder. The asset will be ignored.

Looks like LDtkUnity installed jillejr.newtonsoft.json-for-unity and it's conflicted with the built in com.unity.nuget.newtonsoft-json.

Not sure what to do about this.

Cammin commented 3 years ago

Hmm, some sort of package conflict issue. I'll investigate and try to figure this out. Thank you for the report. 🙂

Cammin commented 3 years ago

I believe I've found a solution from these threads.
https://forum.unity.com/threads/newtonsoft-json-error-after-upgrading-to-0-8-1-from-0-6.961198/
https://forum.unity.com/threads/newtonsoft-json-package.843220/

Basically, I was using the standard Json.Net package from their GitHub, but Unity made their own version of Json.Net, so I'll try using that instead which may solve the problem.

Maybe you got this problem because you have another package that uses Unity's version of Json.Net?

Cammin commented 3 years ago

Fix GUID bug related to json.net package conflicts

Cammin commented 3 years ago

I've tried fixing this. I pushed a new update that changes the dependent Package from Newtonsoft Json for Unity to Newtonsoft Json Unity Package.

Changelog

Overall, it should help prevent some clashing. The error might appear one more time, but won't appear any further after that, I think. 🙂

Feel free to reopen this issue if something unexpected still happens.