SolidAlloy / GenericUnityObjects

Generic UnityEngine.Objects
Other
167 stars 13 forks source link

GenericUnityEditorInternals.dll will not be loaded due to errors #31

Closed thewhitewayofdelight closed 2 years ago

thewhitewayofdelight commented 2 years ago

Hi there,

I just installed this package on a fresh Unity 2021.2.14f1 project. And got that error that can be cleared. But... I can't type GenericScriptableObject on scripts. Any idea? Maybe because I'm using MacOS?

image

Here is the error message

Assembly 'Packages/com.solidalloy.generic-unity-objects/GenericUnityEditorInternals.dll' will not be loaded due to errors:
Unable to resolve reference 'SolidUtilities.Editor'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'SolidUtilities'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'GenericUnityObjects'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.

Thank you

SolidAlloy commented 2 years ago

Hi, thank you for reporting the issue. Could you check where the DLL files generated from assembly definitions are located inside your project? On Windows, they are located at /Library/ScriptAssemblies/ image It's possible that on macOS, they are located in a different folder.

As for the GenericScriptableObject issue: the issue may appear when you reference it inside an assembly definition, but you haven't added the reference to GenericUnityObjects assembly definition in the inspector: image

If you create the Generic class inside Assembly-CSharp and GenericScriptableObject cannot be found, it may be due to the issue with GenericUnityEditorInternals. Let's fix the first issue and see if it resolves the second one.

thewhitewayofdelight commented 2 years ago

Hi SolidAlloy, I just update the package to the newest version and didn't see this issue anymore 😆

Kind of sus :D

I will close the issue, thank you

SolidAlloy commented 2 years ago

That's great. Hopefully, it will not reappear :)