Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
2
Question by javinair-neurodigital · Jan 19, 2017 at 04:29 PM · pluginprojectdllfolders

DLL placement

Hello,

I would like to know: If I am going to use a DLL in my project, where should it be placed. I have read that it depends on the type of DLL (if it has been written in C# or C++). I have seen Unity projects where the DLL has been placed in the root folder, other instead are inside the /Assets folder, and some others inside /Plugins folder.

Thanks in advance.

Comment
Add comment · Show 2
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 jmgek · Jan 19, 2017 at 09:10 PM 0
Share

With my experience in managing and unmanaged there is no dependency on where it's put, this is in unity 5.5.

avatar image javinair-neurodigital jmgek · Jan 20, 2017 at 07:36 AM 0
Share

I am currently using Unity 5.5.0f3 with a C++ native plugin. If I put this .DLL inside the /Assets folder or inside any other below it, the console in Unity Editor shows the "DLLNotFoundException", but if I place it in the root folder of the Unity project, it works perfectly.

When I compile the project, I have to copy&paste that .DLL and put it next to the .exe, otherwise it doesn't work.

Am I doing anything wrong or it seems a special case? Thanks :)

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by tanoshimi · Jan 19, 2017 at 09:16 PM

They can be placed anywhere.

In previous versions of Unity, the location of the plugin determined the OS for which it was targetted (i.e. Assets/Plugins/iOS or Assets/../Plugins/x86), but this is no longer the case. However, you may still find it useful to keep your DLLs organised like this since Unity will use it to infer default settings from the plugin location, as described at https://docs.unity3d.com/Manual/PluginInspector.html

Comment
Add comment · Show 2 · 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
avatar image Mikael-H · Jan 20, 2017 at 11:36 AM 0
Share

Ahh and here I was thinking that it HAD to be placed in a folder named "plugins"! Thanks for clearng out the confusion. I've actually been googling for this info before but haven't found the right source of info before. Are there other updates to folder requirements that one should know about for other types of asset perchance?

avatar image tanoshimi Mikael-H · Jan 20, 2017 at 11:46 AM 1
Share

There are a few other "special" folders: - /Editor - /Gizmos - /Resources - /Strea$$anonymous$$gAssets

None of these have had recent updates in usage AFAI$$anonymous$$

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

6 People are following this question.

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

Related Questions

Import C# project into my Unity solution 1 Answer

Problem with dll plugin 0 Answers

UnauthorizedAccessException when accessing DLL 1 Answer

Native c++ plugin on android 0 Answers

How to link to scripts in the Package Manager when building a dll. 0 Answers


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