Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Using Unity as a library in native iOS/Android apps

Discussion in '2019.3 Beta' started by PavelLU, May 27, 2019.

  1. mhaser

    mhaser

    Joined:
    Feb 11, 2019
    Posts:
    1
    There is a complete tutorial here.
    Can anyone provide detailed instructions on how to integrate the new library structure into a swift project?
    I need to add the unity player view in the background of another custom view.
     
  2. IOZO

    IOZO

    Joined:
    Jun 26, 2010
    Posts:
    55
    Android Studio 3.5

    For Android, I can compile and run the App with Android Studio 3.4.2. The last update with Android Studio 3.5 can still build the project but it crashes at start (Caused by java.lang.UnsatisfiedLinkError: No implementation found for void com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator() (tried Java_com_unity3d_player_UnityPlayer_nativeRestartActivityIndicator and Java_com_unity3d_player_UnityPlayer_nativeRestartActivityIndicator__)
    at com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator(Unknown Source))

    Rolling back to Android Studio 3.4.2 allows me to build and run again
     
  3. Cinqed

    Cinqed

    Joined:
    May 30, 2017
    Posts:
    14
    @auerfloriancom , I got pulled to another project earlier this summer. Any progress on the iOS side of the fence? Also, any chance you can share your WIP on the Xamarin.Android CustomRenderer? Didn't know if you meant "working for you" or "some other example" you know of... Thanks!
     
  4. hyperhuzaifa

    hyperhuzaifa

    Joined:
    Aug 21, 2015
    Posts:
    3
    Assuming I am packaging Unity library with the main app (which I am not distributing through playstore),
    How do I export a game, bundle it and distribute dynamically it WITHOUT updating the whole app?
    Has anyone figured out Dynamic code update on Android?
     
  5. sandeepsmartest

    sandeepsmartest

    Joined:
    Nov 7, 2012
    Posts:
    101
    Are looking out for Asset Bundles??
     
  6. WellC

    WellC

    Joined:
    Mar 2, 2015
    Posts:
    48
    An issue:
    ios ,the device memory is not reduced when I executed this code .
      [UnityFrameworkLoad() unloadApplicaion: [B]true[/B]];
     
  7. hyperhuzaifa

    hyperhuzaifa

    Joined:
    Aug 21, 2015
    Posts:
    3
    Nope. Assetbundles don't package scripts AFAIK. I want to be able to package arbitrary unity C# scripts and gave scenes that use them.
     
  8. PavelLU

    PavelLU

    Unity Technologies

    Joined:
    Feb 23, 2017
    Posts:
    63
    There is some improvements for memory to be better released, please try next Unity release starting from 2019.3.b4 version to see if helps in your case ,if not please report a bug.
     
  9. Haru_Happy

    Haru_Happy

    Joined:
    Sep 4, 2015
    Posts:
    4
    still on 2019.3.b4 , and if use unloadApplicaion:false it will crash
     
  10. Willake

    Willake

    Joined:
    Jan 13, 2017
    Posts:
    1
    Is it compatible with Kotlin?
     
  11. NSWell

    NSWell

    Joined:
    Jul 30, 2017
    Posts:
    29
    @PavelLU Unity As Library is not supported SwfitUI , I tried. Are there some ideas?
     
  12. NSWell

    NSWell

    Joined:
    Jul 30, 2017
    Posts:
    29
    There are a lot of memory leak........
    Build on Unity 2019.3 beta 5
     

    Attached Files:

    • leak.png
      leak.png
      File size:
      943.8 KB
      Views:
      52
  13. 3d_Artist1987

    3d_Artist1987

    Joined:
    Jul 9, 2012
    Posts:
    716
    Is vuforia plugin support unity as a library?
     
  14. gaolei_nls

    gaolei_nls

    Joined:
    Aug 26, 2019
    Posts:
    2
    When the host native iOS app supports all 4 orientations, configuring the Unity player to be landscape only in player settings doesn't work any more. Setting Screen.orientation in script doesn't work either.

    I'm using the latest 2019.3.0b6.
     
    Last edited: Oct 4, 2019
  15. charmcrescini

    charmcrescini

    Joined:
    Sep 9, 2019
    Posts:
    10
    Is this possible if I use AR Foundation in unity?
     
  16. GaZnoDrone

    GaZnoDrone

    Joined:
    Mar 3, 2015
    Posts:
    6
    Hello Everyone,
    I am new to android dev, I wanted to try this feature I have used AAR are file made from the exported unity project and achieved this but I wanted to try this now. I get cannot resolve MainUnityActivity.class. I have attached screenshots BuildSetings(app).jpg BuildSetings(Project).jpg MainActivity.jpg Project_File.jpg stringXML.jpg of things I have done BuildSetings(app).jpg BuildSetings(Project).jpg MainActivity.jpg Project_File.jpg stringXML.jpg
     
  17. unity_wmc3ARYG7UnV9A

    unity_wmc3ARYG7UnV9A

    Joined:
    May 29, 2019
    Posts:
    1
    I would like also to know how can this unity as a library be used in react-native.
     
  18. ptc-gkanai

    ptc-gkanai

    Joined:
    Jul 3, 2019
    Posts:
    1
  19. Sergey_ksubox

    Sergey_ksubox

    Joined:
    Jul 29, 2015
    Posts:
    7
    Hello,
    From manual I see parentHWND works only for Windows platform.
    How about integration in Desktop OSX application ?
     
  20. nilsdr

    nilsdr

    Joined:
    Oct 24, 2017
    Posts:
    230
    have you figured out the answer to this?
     
  21. Saurabh7SSR

    Saurabh7SSR

    Joined:
    Apr 11, 2015
    Posts:
    11
    Can I use Animation Rigging package or Third Party assets from Asset Store like Easy Mobile with Unity as a library?
     
  22. ubt_robot

    ubt_robot

    Joined:
    Apr 11, 2019
    Posts:
    1
    Compile the Android version with IL2CPP, click on ‘Show Unity’ to enter unity, click on 'FINISH’ , click on 'Show Unity’ again, the app crashes

    2019-10-28 11:30:13.789 22858-23757/com.unity.mynativeapp E/libc++abi: terminating with uncaught exception of type il2cpp::vm::Thread::NativeThreadAbortException
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: Version '2019.3.0b6 (0612c96692fb)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: Build fingerprint: 'samsung/c7ltezc/c7ltechn:8.0.0/R16NW/C7000ZCS3CRJ1:user/release-keys'
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: Revision: '4'
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: ABI: 'arm64'
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: Timestamp: 2019-10-28 11:30:13+0800
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: pid: 22858, tid: 23757, name: UnityMain >>> com.unity.mynativeapp <<<
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: uid: 10774
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: x0 0000000000000000 x1 0000000000005ccd x2 0000000000000006 x3 0000000000000008
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: x4 fefeff6f23f50b5f x5 fefeff6f23f50b5f x6 fefeff6f23f50b5f x7 7f7f7f7f7fff7f7f
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: x8 0000000000000083 x9 65be5c0b129c5935 x10 0000000000000000 x11 0000000000000001
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: x12 ffffffffffffffff x13 0000000000000001 x14 002e1855c284e14c x15 0000f43034fe6fec
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: x16 00000070423dd2f8 x17 000000704237e878 x18 0000006fbfdbb000 x19 000000000000594a
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: x20 0000000000005ccd x21 0000007024f61168 x22 ffffff80ffffffc8 x23 0000007024f61220
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: x24 0000007024f61100 x25 0000007024f61140 x26 0000006fbf640fd4 x27 0000006fbf5e29c2
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: x28 0000007024f61d30 x29 0000007024f61070
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: sp 0000007024f61030 lr 0000007042330ed4 pc 000000704237e880
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: backtrace:
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: #00 pc 000000000006b880 /system/lib64/libc.so (tgkill+8) (BuildId: ea70066d477fbb5003b2f195cbdf97ab)
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: #01 pc 000000000001ded0 /system/lib64/libc.so (abort+88) (BuildId: ea70066d477fbb5003b2f195cbdf97ab)
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: #02 pc 00000000007894a8 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (std::set_unexpected(void (*)())) (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: #03 pc 0000000000789624 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    2019-10-28 11:30:13.792 22858-23757/com.unity.mynativeapp E/CRASH: #04 pc 00000000007868b4 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    2019-10-28 11:30:13.793 22858-23757/com.unity.mynativeapp E/CRASH: #05 pc 0000000000785f98 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (__cxa_get_exception_ptr) (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    2019-10-28 11:30:13.793 22858-23757/com.unity.mynativeapp E/CRASH: #06 pc 0000000000785f18 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    2019-10-28 11:30:13.793 22858-23757/com.unity.mynativeapp E/CRASH: #07 pc 000000000063b2b4 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    2019-10-28 11:30:13.793 22858-23757/com.unity.mynativeapp E/CRASH: #08 pc 000000000063b170 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    2019-10-28 11:30:13.793 22858-23757/com.unity.mynativeapp E/CRASH: #09 pc 0000000000639278 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    2019-10-28 11:30:13.793 22858-23757/com.unity.mynativeapp E/CRASH: #10 pc 0000000000638f54 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    2019-10-28 11:30:13.793 22858-23757/com.unity.mynativeapp E/CRASH: #11 pc 0000000000601da0 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (il2cpp_init+44) (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    2019-10-28 11:30:13.793 22858-23757/com.unity.mynativeapp E/CRASH: #12 pc 000000000027bf48 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libunity.so (BuildId: bc0f5c2fc8ddf27569a4f19964eb02af0d5676f3)
    2019-10-28 11:30:13.793 22858-23757/com.unity.mynativeapp E/CRASH: #13 pc 00000000002e1008 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libunity.so (BuildId: bc0f5c2fc8ddf27569a4f19964eb02af0d5676f3)
    2019-10-28 11:30:13.793 22858-23757/com.unity.mynativeapp E/CRASH: #14 pc 00000000002e1a64 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libunity.so (BuildId: bc0f5c2fc8ddf27569a4f19964eb02af0d5676f3)
    2019-10-28 11:30:13.793 22858-23757/com.unity.mynativeapp E/CRASH: #15 pc 00000000002f4794 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libunity.so (BuildId: bc0f5c2fc8ddf27569a4f19964eb02af0d5676f3)
    2019-10-28 11:30:13.793 22858-23757/com.unity.mynativeapp E/CRASH: #16 pc 000000000001068c /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/oat/arm64/base.odex
    2019-10-28 11:30:13.946 22858-23757/com.unity.mynativeapp E/CRASH: Tombstone written to: /storage/emulated/0/Android/data/com.unity.mynativeapp/files/tombstone_00
    2019-10-28 11:30:13.948 22858-23757/com.unity.mynativeapp E/AndroidRuntime: FATAL EXCEPTION: UnityMain
    Process: com.unity.mynativeapp, PID: 22858
    java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Version '2019.3.0b6 (0612c96692fb)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    Build fingerprint: 'samsung/c7ltezc/c7ltechn:8.0.0/R16NW/C7000ZCS3CRJ1:user/release-keys'
    Revision: '4'
    ABI: 'arm64'
    Timestamp: 2019-10-28 11:30:13+0800
    pid: 22858, tid: 23757, name: UnityMain >>> com.unity.mynativeapp <<<
    uid: 10774
    signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
    x0 0000000000000000 x1 0000000000005ccd x2 0000000000000006 x3 0000000000000008
    x4 fefeff6f23f50b5f x5 fefeff6f23f50b5f x6 fefeff6f23f50b5f x7 7f7f7f7f7fff7f7f
    x8 0000000000000083 x9 65be5c0b129c5935 x10 0000000000000000 x11 0000000000000001
    x12 ffffffffffffffff x13 0000000000000001 x14 002e1855c284e14c x15 0000f43034fe6fec
    x16 00000070423dd2f8 x17 000000704237e878 x18 0000006fbfdbb000 x19 000000000000594a
    x20 0000000000005ccd x21 0000007024f61168 x22 ffffff80ffffffc8 x23 0000007024f61220
    x24 0000007024f61100 x25 0000007024f61140 x26 0000006fbf640fd4 x27 0000006fbf5e29c2
    x28 0000007024f61d30 x29 0000007024f61070
    sp 0000007024f61030 lr 0000007042330ed4 pc 000000704237e880

    backtrace:
    #00 pc 000000000006b880 /system/lib64/libc.so (tgkill+8) (BuildId: ea70066d477fbb5003b2f195cbdf97ab)
    #01 pc 000000000001ded0 /system/lib64/libc.so (abort+88) (BuildId: ea70066d477fbb5003b2f195cbdf97ab)
    #02 pc 00000000007894a8 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (std::set_unexpected(void (*)())) (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    #03 pc 0000000000789624 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    #04 pc 00000000007868b4 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    #05 pc 0000000000785f98 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (__cxa_get_exception_ptr) (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    #06 pc 0000000000785f18 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    #07 pc 000000000063b2b4 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    #08 pc 000000000063b170 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    #09 pc 0000000000639278 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    #10 pc 0000000000638f54 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    #11 pc 0000000000601da0 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libil2cpp.so (il2cpp_init+44) (BuildId: 57830d4efde8663bbdc40919c330fdb2f7e31710)
    #12 pc 000000000027bf48 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libunity.so (BuildId: bc0f5c2fc8ddf27569a4f19964eb02af0d5676f3)
    #13 pc 00000000002e1008 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libunity.so (BuildId: bc0f5c2fc8ddf27569a4f19964eb02af0d5676f3)
    #14 pc 00000000002e1a64 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libunity.so (BuildId: bc0f5c2fc8ddf27569a4f19964eb02af0d5676f3)
    #15 pc 00000000002f4794 /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/lib/arm64/libunity.so (BuildId: bc0f5c2fc8ddf27569a4f19964eb02af0d5676f3)
    #16 pc 000000000001068c /data/app/com.unity.mynativeapp-Gs1B4fxN0aN9ncviqb_HoQ==/oat/arm64/base.odex

    at libc.tgkill(tgkill:8)
    2019-10-28 11:30:13.949 22858-23757/com.unity.mynativeapp E/AndroidRuntime: at libc.abort(abort:88)
    at libil2cpp.std::set_unexpected(void (*)())(set_unexpected:0)
    at libil2cpp.0x789624(Native Method)
    at libil2cpp.0x7868b4(Native Method)
    at libil2cpp.__cxa_get_exception_ptr(__cxa_get_exception_ptr:0)
    at libil2cpp.0x785f18(Native Method)
    at libil2cpp.0x63b2b4(Native Method)
    at libil2cpp.0x63b170(Native Method)
    at libil2cpp.0x639278(Native Method)
    at libil2cpp.0x638f54(Native Method)
    at libil2cpp.il2cpp_init(il2cpp_init:44)
    at libunity.0x27bf48(Native Method)
    at libunity.0x2e1008(Native Method)
    at libunity.0x2e1a64(Native Method)
    at libunity.0x2f4794(Native Method)
    at base.0x1068c(Native Method)
     
  23. TenInOne

    TenInOne

    Joined:
    Oct 23, 2019
    Posts:
    2
    Its not working with firebase
     
  24. TenInOne

    TenInOne

    Joined:
    Oct 23, 2019
    Posts:
    2
    And also creates 2 different application's on installation.
     
  25. nilsdr

    nilsdr

    Joined:
    Oct 24, 2017
    Posts:
    230
    Has anyone managed a kotlin implementation
     
  26. paulalexanderwelch

    paulalexanderwelch

    Joined:
    Oct 30, 2019
    Posts:
    1
    How does the back button work on Android in this case? I have Unity running inside my Android app but the back button does not pop the view so I'm stuck.
     
  27. sandeepsmartest

    sandeepsmartest

    Joined:
    Nov 7, 2012
    Posts:
    101
    I guess It should work.I tested with itween. All 3rd party will work aslong as it doest have any conflicts or similar libs that were also used inside android native.Make sure no same 3rd party libs were used across Unity and Android Native for eg:firebase.
     
  28. Tron-Legacy

    Tron-Legacy

    Joined:
    Feb 28, 2017
    Posts:
    3
    I've been testing 2019.3.0b9 and the memory still persists after unloading the unity framework from an iOS app. If I pass `false` to unload application, it crashes the app the next time I try to load the framework.
     
  29. PavelLU

    PavelLU

    Unity Technologies

    Joined:
    Feb 23, 2017
    Posts:
    63
    Application Unload will release all memory related to scenes, textures, assets,...game objects used within scenes, but will keep some of it reserved to make next Unity player initialization possible again (how much ? depends on devices specs, Unity settings, roughly ~110mb)

    You cannot Quit Unity and initialize it again in the same process (crash you have), the only way to do it is to use Unload and have some memory overhead from Unity.
     
  30. Tron-Legacy

    Tron-Legacy

    Joined:
    Feb 28, 2017
    Posts:
    3
    I think the confusion amongst developers is that when I unload the Unity framework, I expect all of the memory to be unloaded (including initialization overhead). I'm okay with a longer restart time vs. more app memory. If my app is using 32MB of memory before loading the framework, then I expect my app to be 32MB after unload. The overhead you describe gives the impression of a memory leak because the developer can't account for that memory being used anywhere, and it can't be reclaimed.
     
  31. NSWell

    NSWell

    Joined:
    Jul 30, 2017
    Posts:
    29
    [UnityFrameworkLoad() unloadApplicaion: true]

    After multiple loads, the memory usage is getting bigger and bigger.
     
  32. FUBAR2077

    FUBAR2077

    Joined:
    Nov 16, 2013
    Posts:
    24
    I have exactly the same issue @PavelLU watch out for this as there can be a lot of questions with UaaL not working with newest Android Studio 3.5 as people download newest by default
     
  33. 39thstreet

    39thstreet

    Joined:
    Jan 30, 2012
    Posts:
    97
    I'm a little surprised a change this sweeping and impactful (it's broke every major plugin we were using -- One Signal, Firebase, Adjust, Unity Ads, etc) was implemented in .3 micro version release, it feels like something that would have made a lot more sense to hold until 2020.x.
     
    mikapote likes this.