Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Draco plugin won't work from non main thread?

Discussion in 'Android' started by trackOfer, Jan 20, 2019.

  1. trackOfer


    Dec 27, 2017
    I tried to integrate the Draco mesh loader library into my Unity app.

    The plugin works on both the main thread and the non main thread on the desktop.
    On Android it works on the main thread, but not on the non main thread.
    This is also after I removed any initialization of Unity Classes such as Mesh so it won't fail on that on the non main thread.

    Is there a limitation in Unity to use binary Android plugins outside the main thread?
    There doesn't seem to be any error on LogCat, the failure is also once I call the external plugin function. If I remove that function form the code, it continues, otherwise the script crash there.
    No error for the crash as well.