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

Unity integration is not supported in Editor #19

Open
cadop opened this issue Jul 13, 2022 · 3 comments
Open

Unity integration is not supported in Editor #19

cadop opened this issue Jul 13, 2022 · 3 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed

Comments

@cadop
Copy link
Owner

cadop commented Jul 13, 2022

The current unity integration demo requires users to build and run the project, so it works for releasing and running a Unity project, but not for running with the editor.

The issue is when users drag the DLLs into Assets, there is no error, and can use the DLL in visual studio. However, when pressing play in the editor, it says that the C DLL is not found and errors with DLLNotFoundException: DHARTAPI.dll. When using build and run the target project does work.

I am not sure how to solve it, or how to make the process easier.

@cadop cadop added bug Something isn't working documentation Improvements or additions to documentation help wanted Extra attention is needed labels Jul 13, 2022
@cadop
Copy link
Owner Author

cadop commented Aug 11, 2022

Temporary solution:

Add the DLLs to the Unity Editor folder

@cadop cadop added the enhancement New feature or request label Aug 17, 2022
@cadop
Copy link
Owner Author

cadop commented Nov 22, 2022

This bug is caused by the tbb.dll used by the unity editor being for an older version of msvc. For some reason unity editor is taking priority over dhart dll's. For now the fix is to replace Unity Editors tbb.dll in the Editor folder (you don't need to copy all the dlls).

@cadop
Copy link
Owner Author

cadop commented Dec 1, 2022

Maybe we can build with a modified name of the tbb.dll to stop the Unity Editor from prioritizing its own version for dhart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant