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

RefreshAssemblyImportSettings returns exception #42

Open
Muchaszewski opened this issue Sep 15, 2020 · 5 comments
Open

RefreshAssemblyImportSettings returns exception #42

Muchaszewski opened this issue Sep 15, 2020 · 5 comments

Comments

@Muchaszewski
Copy link

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)

@Muchaszewski
Copy link
Author

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

@niscolas
Copy link

Any news?

@TorVestergaard
Copy link
Member

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.

@niscolas
Copy link

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.

@TorVestergaard
Copy link
Member

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

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

3 participants