- Home /
How can I get the Native Plugin example to work on Unity 5?
I've been struggling with building a native c++ plugin for my Unity application. I tried to build upon the Native Plugin example but there seem to be some problems with the example itself. We recently switched from Unity 4 to 5. I've tried the example on both. For Unity 5 I had to recompile the DLL as a x64 version. Both versions compile and run, yet nothing seems to happen when I run the demo scene.
Besides that, the example seems to include an outdated version of the DirectX SDK. This plugin is my first time dabbling with DirectX so I'm no expert, but from what I can gather, the recommended library to use is the DirectX Tool Kit, because the DirectX SDK is deprecated (since Januari 2015, if I'm not mistaken).
Has anyone gotten the example to work recently? If not, when can we expect an updated version?
did you build the solution and ran it outside unity editor?
I have and it gives the same (no) result. Although that shouldn't make a difference, right?
well, the difference is that inside the unity editor you use the "fake" dll, and outside of it, you use the "real" dll. but if it doesn't even work outside the editor then maybe something else isn't right.
Your answer
Follow this Question
Related Questions
C++ native plugin Failed with error '%1 is not a valid Win32 application 0 Answers
Can I code a native plugin for iOS in C/C++? 0 Answers
How does Texture2D.CreateExternalTexture work? 1 Answer
Writing a plugin for LiquidFun 0 Answers
Need help installing plugin: Razer Chroma SDK Plugin Colore 1 Answer