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

Missing Namespace #16

Closed tomh4 closed 4 years ago

tomh4 commented 5 years ago

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 ?

KyleStank commented 5 years ago

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

mcguinnessdr commented 5 years ago

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

TorVestergaard commented 4 years ago

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

RohitMoni commented 4 years ago

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.

Cimajor commented 3 years ago

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.

WTF-ATuan commented 3 years ago

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

pixelpax commented 2 years ago

Still happening with 2020.3.17f1

BergesJ commented 2 years ago

Still happening when loading via plastic scm as a new project

MeisterDerMagie commented 9 months ago

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.