Closed DavidBours closed 5 years ago
Hi.
Do you mean your custom types or the built-in types? Also, how did you make sure it is not being added and there is no type?
Thanks. Best Regards.
Hi,
These are the both, the process generate a Reflection Type Load Exception on this line: (Type[] typesFound = AppDomain.CurrentDomain.GetAssemblies().SelectMany(s => s.GetTypes()).Where(p => type.IsAssignableFrom(p) && !p.IsInterface && !p.IsAbstract).ToArray();) on the SaveGameTypeManager.
I found the problem, it's because I used the following parameters for my project: Scripting runtime version: .NET 4.x equivalent Api Compatibility Level: .NET 4.x
I created an other project with the following parameters for my project: Scripting runtime version: .NET 3.5 equivalent Api Compatibility Level: .NET 2.0 Subset
With these parameters, it's works but I must to use .NET 4.x because I used the external DLL with this framework.
Thanks, Regards.
I think it is trying to get that External DLL which causes this issue, as you have mentioned. So, I have added a new symbol for forcing it to use Manual Type additions. Please use this and let me know if it works.
Assets/BayatGames/SaveGamePro/Scripts/Serialization
SGP_FORCE_MANUAL_TYPES
It works now.
Thank you very much.
Regards
Hello,
I bought Same game pro but I have a problem with the SaveGameTypeManager. When my project starts and passing in the Initialize method no types are added.
Regards