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
9
Question by Rasmus Schlnsen · Nov 03, 2010 at 03:42 PM · dll

Developing with external unmanged dll's

Does anyone know a method for unlocking used dll in the unity editor? I'm developing a c++ dll which i'm including in my projects "Plugins" folder, but every time I want to update my c++ dll in my project, I have to close the editor before I can delete the old and copy in a new.

Comment
Add comment · Show 4
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 StephanK · Nov 03, 2010 at 03:52 PM 0
Share

I don't think there is a way around restarting the editor, but I too am hoping that there is a solution...

avatar image skovacs1 · Nov 03, 2010 at 05:41 PM 0
Share

But it's only after the code using the dll is executed in the editor. You can overwrite your dll till the cows come home for game run-time dlls up until you hit play in the editor, then it locks it even after you hit stop and you need to restart in order to overwrite it.

avatar image Max Kaufmann · Nov 05, 2010 at 12:21 AM 1
Share

There likely won't ever be support for this. We ran into a similar issue with our internal engine - you can't be sure the library doesn't have open file handles or threads that it would leak if you suddenly detatched it from the process.

avatar image yoyo · Nov 22, 2010 at 06:42 AM 0
Share

You could try something like Unlocker -- http://ccollomb.free.fr/unlocker/

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by jonas-echterhoff · Nov 22, 2010 at 03:44 PM

As other mentioned, this is not possible right now, and likely won't be any time soon, since we don't know if the dll is in a state where it can be unloaded without leaking anything (though it would be possible to expose mechanisms for that).

What you could do though would be to implement this yourself by creating a "wrapper" dll which loads and unloads the actual dll you want to use.

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

No one has followed this question yet.

Related Questions

External DLL freezes editor, not build 0 Answers

How to debug c++ dll code 4 Answers

How to access unmanaged dlls in Unity 1 Answer

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

Dll Call Back problem only in Standalone version 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