Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by mmangual_83 · Jan 15, 2014 at 02:18 PM · c#dlldllnotfoundexception

DllNotFoundExeption: Help

In my project I created a Plugins folder (named it "Plugins", of course) and in it I have three plugins that get imported from my c++ project. Every time I hit build content I have my dlls show up into the "Plugins" folder.

The things is that I get a DllNotFoundExeption every time I run the game and it points to two out of my three plugins. Me and my teammates found online that you can solve this by placing the dlls in the the Assets folder. We did so, and as luck would have it, that solved it, by moving the two dlls that were giving us the error it solved it. We left the one dlls that was fine where it was inside the Plugins folder.

But something was nagging at the back of my head that this would not solve our entire issue, and I was right. When w build the game and create our executable only one dll gets built, which is the only one that is within the Plugins folder.

My question is: how do I fix my other two dlls so I don't get that DllNotFoundExeption error?

UPDATED REPORT I found that the one dll that works is done in C# while the other two that don't seem to work inside the Plugins folder are made in C++.

So my new question is how do I get Unity to accept those two dlls within the Plugins folder, or is that not possible for c++ plugins?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sundar · Jan 15, 2014 at 04:56 PM 0
Share

Is your Plugins folder inside Asset folder? If not move it inside Asset folder then build.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Kolodej · Jan 15, 2014 at 05:40 PM

Hi, if you want to use c++ libraries in Unity, you have to expose their methods via .net wrapper. You can find a lot of articles about that [c++ plugins for unity].

Example:

 public class Wrapper {
     DllImport ("PluginName")]
     public static extern int ExposedPluginMethod(); 
 }
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Having issues using my .dlls 1 Answer

Distribute terrain in zones 3 Answers

Multiple Cars not working 1 Answer

How to get Unity to detect my own touch events 0 Answers

A node in a childnode? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges