TeamSirenix / odin-serializer

Fast, robust, powerful and extendible .NET serializer built for Unity

Home Page:http://www.odininspector.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing Namespace

tomh4 opened this issue · comments

Opening up a non-modified version in Unity throws this error :
Assets\Plugins\Sirenix\Odin Serializer\OdinBuildAutomation.cs(4,26): error CS0234: The type or namespace name 'Editor' does not exist in the namespace 'OdinSerializer' (are you missing an assembly reference?)

Is this expected ?

I have the same issue. This happens on both Unity 2018.3 and Unity 2019.1.

Changing the platform settings on these files seems to fix it, change the AOT and JIT to exclude editor, and the EditorOnly to exclude standalone. This got rid of the errors and brings up the build menu, at least, not sure if the rest of it works after completing these steps.
image

Any import problems with the assemblies in newer versions of Unity should now be fixed as of this commit.

Hey, not sure if this is just for me, but I'm still getting this issue coming up on the latest master for Odin. Using Unity 2018.4.15f1, have tried 2019.3 as well. The steps by mcguinnessdr fixes it.

Hello, I have the same issue when I'm trying to build my game with Unity build 2019.3.8f1. But I don't have "Odin serializer" folder at all. I don't have any troubles to run my game, I get the error only when I'm trying to build.

commented

Hello I have same issue too but it,s only happen when I git to other

Still happening with 2020.3.17f1

Still happening when loading via plastic scm as a new project

Had this happen, too. I deleted the whole Sirenix folder from Asset/Plugins and re-imported the package via package manager. Now it works.
EDIT: It was an issue with our git LFS setup. The files were not pulled successfully and therefore the .dll's of Odin were corrupt.