Search Unity

Question Dll working in Editor but not in Android build

Discussion in 'Scripting' started by NewMagic-Studio, Sep 10, 2020.

  1. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    454
    Dont know why i have a dll which works in editor but not in the android build, any ideas? Dll is set to work in all platforms
     
    adnanzmn97 likes this.
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,689
    Bust out your
    adb logcat
    and look for errors in the console stream.

    If nothing obvious, I recommend liberally sprinkling Debug.Log() statements through your code to display information in realtime, which you can watch with adb logcat as well.

    Doing this should help you answer these types of questions:

    - is this code even running? which parts are running? how often does it run?
    - what are the values of the variables involved? Are they initialized?

    Knowing this information will help you reason about the behavior you are seeing.
     
  3. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    454
    Everything works fine, i used debug log and saw it in adb logcat and everything is ok but the data i get from the method in the dll, it gives me empty value
     
  4. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    454
    From what i read seems dll doesnt work for Android, just for Windows
     
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,689
    And what might this mysterious DLL do for you? Perhaps you could check with the people who gave you that DLL to see if there's an equivalent for Android?