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

3 ERROR on <main.cpp> #3

Open
orangeagain opened this issue Sep 28, 2020 · 1 comment
Open

3 ERROR on <main.cpp> #3

orangeagain opened this issue Sep 28, 2020 · 1 comment

Comments

@orangeagain
Copy link

orangeagain commented Sep 28, 2020

I am not good at c++, so I send BuildDLL project for you.
BuildDLL.zip

@ghost
Copy link

ghost commented Sep 29, 2020

@orangeagain

The source C++ (Unmanaged DLL when imported into Unity) need to be compiled into a Dynamic-Link Library C++
This should include:

  • main.cpp
  • xatlas.cpp
  • xatlas.h

The file xatlasAPIWrapper.cs should NOT be included, this is what Unity uses to call functions from a managed C++ DLL in C#

Managed DLLs need to be inside a folder called "Plugins" at the root of your Unity project's Assets folder.

See: https://docs.unity3d.com/Manual/UsingDLL.html

and

https://ericeastwood.com/blog/17/unity-and-dlls-c-managed-and-c-unmanaged

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

1 participant