Quantcast
Channel: Questions in topic: "dll"
Viewing all articles
Browse latest Browse all 706

Exception is being thrown in unity , but does not happen in project.

$
0
0
Hello , i have been developing a game in unity when i ran to this exception . Basicly i imported my own dll library which handles generation of items , now for some part of the data i'm using json files , and i'm converting a dictionary with complex key (non primitives ) so i had to implement a type converter . So i did all that , and i tested my own library and it all works fine .But when i imported it into unity , and called it from a c# script that i made inside unity , it throws : ```ArgumentException: Could not cast or convert from System.String to Cs_go_Item_Generator.Quality. ... '. Create a TypeConverter to convert from the string to the key type object. Path 'Restricted', line 2, position 17.``` But in my own library i did implement a type converter , and my library does work since i tested it with another project. Does anyone know why is it doing it ? My library is set for .net3.5 and using json.net for the json files - also for .net 3.5

Viewing all articles
Browse latest Browse all 706


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>