TeamSirenix / odin-serializer

Fast, robust, powerful and extendible .NET serializer built for Unity
http://www.odininspector.com
Apache License 2.0
1.69k stars 193 forks source link

Unity 2021.3 .NET Standard 2.0 API not supported, Out of the box. #55

Open MxReaper opened 1 year ago

MxReaper commented 1 year ago

I'm trying to test the odin-serializer on Unity 2021.3.12f1 on windows 10.

So just wondering if is this normal behavior for out of the box?

Assets\OdinSerializer\Utilities\Misc\EmitUtilities.cs(20,8): error CS1029: #error: 'Odin Inspector is incapable of compiling source code against the .NET Standard 2.0 API surface. You can change the API Compatibility Level in the Player settings.'

I didn't see any info in the readme that i need to switch APIs. I switched the API to .Net framework. I get a lot of warnings similar too.

Assets\OdinSerializer\Unity Integration\UnitySerializationUtility.cs(832,87): warning CS0618: 'PrefabType' is obsolete: 'PrefabType no longer tells everything about Prefab instance.'

DavidEichmann commented 1 year ago

+1

Alvarden15 commented 1 year ago

Same here. I'm using Unity 2021.3.16f1 on Windows 10 and this same error happens, and this isn't addressed anywhere on the documentation or in this repository. An even when changing to Net Framework, it has a lot of warnings of obsolete methods being used, like MxReaper said:

Which is a shame. I've heard great things about this serializer, but these pitfalls discourage anyone from using it at all. I hope these issues are addressed soon enough.

P.D: please, improve your Json format serialization, it's still buggy.

PerfectedApp commented 1 year ago

It's not a trivial issue. Core and Standard do not have the ability to write assembly to disk -- just in memory.