Reputation: 1
I'm working on a Unity 2022 project to develop an app for HoloLens 2, and I'm running into an issue with a public DLL that I'm trying to recompile and use in the project.
The problem is that every time I recompile the DLL and try to use it in Unity, I encounter the following error:error code
Environment details: Unity version: 2022.3.48f1 (LTS) Visual Studio Version: VS Community 2022 17.12.3 with SDK: 10.0.22621 Target platform: HoloLens 2 Target version: 10.0.22621.1413
Here’s what I’ve tried so far: Compiling the DLL for Universal Windows Platform (UWP). Compiling the DLL for Windows. Compiling the DLL with exports. All compiles are for with both x64 and ARM64 architectures. Unfortunately, all these attempts result in the same error.
On top of that I have tried with different versions on Unity, and even though the error is the same, when I run it as Unity 6 project, its a bit more detailed:error code
I've also ensured the following: The DLL is placed in the correct location (Plugins folder). The target platform and architecture match the HoloLens 2 requirements. Dependencies are included and properly referenced in Unity.
What else can I try to resolve this issue? Any suggestions or insights would be greatly appreciated!
Thank you!
Upvotes: 0
Views: 37
Reputation: 1
Yea, Unity gets finicky when using DLLs for some platforms. Had a similar issue with Hololens development a few weeks back. Try doing Plugins/Managed instead of just the Plugins folder if you haven't tried that yet.
Upvotes: 0