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
1
Question by kilian277 · Sep 28, 2013 at 10:05 PM · c#dllmanaged

c# dll works on desktop but not on android

Hi,

i have a dll that does stuff.

Now it completely works on the desktop (when i use play button) , but on the device itself it doesn't seem to even call the methods in the dll.

Does anybody have a solution for this ?

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 Bunny83 · Sep 28, 2013 at 10:26 PM 0
Share

Are you sure the DLL is a pure managed DLL? where is it located relative to your assets folder? Have you written the DLL?

All your scripts get compiled into a DLL and this DLL is packed into your game so in general pure managed DLLs always work. Do you build for iOS, Android, WP, ...?
Just reread the title ;)

avatar image AndyMartin458 · Sep 29, 2013 at 01:49 AM 0
Share

Are you using DllImport to bring in the functions? A lot of dll's are compiled for specific platforms, so if it works in the editor that probably means it wasn't compoled for Android.

avatar image kilian277 · Sep 29, 2013 at 11:43 AM 0
Share

I have written the dll myself in visual studio 2010 with c# and then just placed it in the "plugins" folder of the project.

avatar image Yanger_xy · Dec 03, 2014 at 03:09 AM 0
Share

I have the same problem, have you solved it?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by PAHeartBeat · Dec 03, 2014 at 05:03 AM

I think it's due to .net version diffrent. May be your dll is compplied using .Net 3.5 / 4.0, but unity works on Mono (.Net 2.0) so change your frmawork in visual studio project setting and recompile it. using .Net 2.0 framework, and if you using stripings then also add linker file for your all used namesapce which you have used in DLL files.

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

20 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

Related Questions

Managed Plugin Can't Reference Unity Plugins 0 Answers

Using dll's from C#? 4 Answers

Using Native C++ dll in Unity 1 Answer

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 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