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

RefreshAssemblyImportSettings returns exception

Muchaszewski opened this issue · comments

When downloading a standalone unity package from your page, and extracting it to Unity. The following error occurs after pressing RefreshAssemblyImportSettings

NullReferenceException: Object reference not set to an instance of an object
OdinSerializer.Utilities.Editor.OdinAssemblyImportSettingsUtility.ApplyImportSettings (System.String assemblyFilePath, System.Boolean includeInBuild, System.Boolean includeInEditor) (at Assets/OdinSerializer/Config/AssemblyBuildInfo.cs:137)
OdinSerializer.Utilities.Editor.OdinAssemblyImportSettingsUtility.ApplyImportSettings (System.String assemblyFilePath, OdinSerializer.Utilities.Editor.AssemblyImportSettings importSettings) (at Assets/OdinSerializer/Config/AssemblyBuildInfo.cs:129)
OdinSerializer.Utilities.Editor.AOTImportSettingsConfig.Apply () (at Assets/OdinSerializer/Config/AssemblyBuildInfo.cs:186)
OdinSerializer.Utilities.Editor.OdinSerializationBuiltSettingsConfig.RefreshAssemblyImportSettings () (at Assets/OdinSerializer/Config/AssemblyBuildInfo.cs:74)

var importer = (PluginImporter)AssetImporter.GetAtPath(assemblyFilePath); = null
assemblyPath = Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor/Sirenix.Serialization.dll do not exists after extraction of the UnityPackage.

image
In the UnityPackage there is no file that would match this path.

Unity: 2020.1.3f1
Target: WebGL (AOT)

Without doing anything - after creating a Quick Start example and adding a component to the scene. Serialization do not work

The fact of the matter is that this is a method/menu item that should only be present when Odin Serializer is built and distributed as assemblies from the github repo project. Therefore it does nothing sensible when Odin Serializer is installed as source, having no function and no way to do anything, since there are no assemblies to correct import settings for.

I will try to think of the best method for removing it from the source distribution downloaded via our website.

I understand... but besides that, the serializer don't work at all with the Unity Package from the website.
I tried to show Dictionaries on the inspector in a SerializedMonoBehaviour child class, but it didn't show up.

The serializer is purely about saving and loading data, it contains no visual inspector features. For that, you must purchase Odin Inspector.