Publisher | eToile |
---|---|
File size | 2.79MB |
Number of files | 28 |
Latest version | 1 |
Latest release date | 2016-05-09 08:24:24 |
First release date | 2016-03-31 09:47:21 |
Supported Unity versions | 2018.4.2 or higher |
Connecting C++ native DLL to C# for Unity:
Would you like to write your own Windows based DLLs?
So this asset is for you, it saves a lot of time researching how to connect a native C++ DLL to Unity.
This is basically a sample/tutorial project with both sides of the solution: C++ and C#.
NOTE: This package is not intended for non programmer users.
What is included in this package:
- Complete DLL project (Visual Studio 2015 Community)
- Unity C# source code to access the demo DLL data.
- Full documentation explaining the source files, and also how to generate your own DLL projects from scratch.
Why native instead of managed DLLs?
Native DLLs normally don’t need external dependencies, so reduces compilation issues. C# DLLs tends to need System DLLs to export final product, specially if you are connecting with some awesome new technology.
So you can develop your C++ code within Visual Studio and then connect it to Unity through a DLL file following the instructions included in this package.
Data types exposed in C++:
int, float, bool, string, wstring, char*, wchar_t*, byte*.
Date exposed on C# side:
int, float, bool, string, byte[].
If you find that some data type must be included in this project, please do not hesitate on contacting me: [email protected]