Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Help: System.Relfection Exception. How do i resolve this issue? Can it be done with link.xml? #43

Answered by applejag
ChimpSay asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Thanks for reporting, I'm eager to help :)

The exception is due to failing to deserialize your type, as you notice. However the issue does not lie in YOUR codebase, and that's why your link.xml attempts failed. To be specific, the errors says it fails to construct the following type from the Newtonsoft.Json assembly:

Newtonsoft.Json.Utilities.CollectionWrapper<ulong>

I strongly recommend solving this via AotHelper, however it can also be solved via link.xml. To solve via AotHelper you may add the following to a method inside a MonoBehaviour/ScriptableObject (any will do, not only one you're using):

AotHelper.EnsureList<ulong>();

You can find full specs of the AotHelper in the wiki pag…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by applejag
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #43 on December 10, 2020 11:19.