Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MxReaper opened this issue Nov 11, 2022 · 3 comments
Open

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

MxReaper opened this issue Nov 11, 2022 · 3 comments

Comments

@MxReaper
Copy link

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
Copy link

+1

@Alvarden15
Copy link

Alvarden15 commented Feb 24, 2023

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:

  • warning CS0618: 'PrefabUtility.GetPrefabType(Object)' is obsolete: 'Use GetPrefabAssetType and GetPrefabInstanceStatus to get the full picture about Prefab types.'
  • warning CS0618: 'PrefabType' is obsolete: 'PrefabType no longer tells everything about Prefab instance.'
  • warning CS0618: 'RuntimePlatform.[Obsolete platform]' is obsolete: '[Obsolete platform] export is no longer supported in Unity version.'

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants