I’ve checked to make sure both have the same settings. They use the same rendering pipeline, the same .NET target, etc. I’ve even made sure the installed dependencies are the same. I’m just not able to find the cause of the bug. Unfortunately, the bug is in the main project. I created a test one to compare.
2:
In the minimalist test project that the Simplygon plugin works in, upgrading the USD package to com.unity.formats.usd@3.0.0-exp.2 breaks the plugin. I get this error with no more info:
Dropping back to com.unity.formats.usd@3.0.0-exp.1 fixes it.
In you case #1, does the DllNotFoundException error still appear if you remove/uninstall Simplygon from the project?
In your case #2, do you still get the error if you restart Unity after upgrading the USD package to 3.0.0-exp.2? (the Unity editor needs to be restarted after changing USD package version in order to properly reload certain libraries)
I am not aware of any specific issues with USD 3.0.0-exp.2 and I couldn’t find any reported bugs in our database related to Simplygon. It sounds like this might be an issue on their side that isn’t supporting our latest USD changes. Unfortunately there isn’t much we can do to help on our end, my suggestion would be to reach out to the Simplygon support team for more details.
But that still doesn’t explain the DllNotFoundException you are getting USD 3.0.0-exp.1 on the main project. Just to validate if the issue is coming from the USD package, could you try importing a single USD file in that project and let me know if you are getting any errors? You can try the following:
Add USD package 3.0.0-exp.1 to your project (if not already installed)
Restart Unity editor (to be extra safe ;))
In the top Unity menu, go to USD -> Import as GameObjects and select a USD file to import (you can use the torus.usd that I attached in a zip to this message).
If all goes well, you should now be seeing a new torus object in the scene but let me know if it that’s not the case and also include any errors that might be logged.
I was never able to resolve the DllNotFoundException message in the original project. As a workaround, I created a whole new project. It was working for a week or so. Now I’m getting the DllNotFoundException in the new project. Currently, the only solution I have is to periodically recreate the whole project.
It’s not a Simpygon issue. Attempting to export the small torus.usd file from above also triggers this error:
No. I’m initially able to load the simple torus.usd file, but twice the project has somehow gotten corrupted. In the end to get the job done I had to move all USD-based work out of Unity.
It seems like that the USD package is built in x86_64, but the unity we use is an Apple Silicon version whose architecture is arm64, so some dynamic library load failed.
Yes I have my Simplygon working properly in URP project, however I cannot build the project as for some reason to build the project you require the DLL file to be included in the project.
Cross Check:
Make sure you have the license for SimplyGon (Go to the file you installed SimplyGon to and there you’ll find the Get License application and just get the free version
Make Sure that your System Variable Path to SimplyGon folder is set properly