Search Unity

WSA Native Plugins

Discussion in '2019.1 Beta' started by Foriero, Dec 19, 2018.

  1. Foriero

    Foriero

    Joined:
    Jan 24, 2012
    Posts:
    450
    How Unity handles native plugins in VS? For example we have bass.dll for x86, x64, arm and arm64 but when I build from unity it seems you include in the project only that platform we select in "build settings" BUT when we build appxbundle it actually compiles all architectures into one file. Does unity takes care of that process? I mean does unity includes inside that appxbundle all four versions of bass.dll?

    Thank you, Marek.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,997
    Depends on your build type.

    If you use the D3D or XAML project build types, "Architecture" in build settings doesn't really do anything, because it is decided when you build the generated Visual Studio project. Native plugins for all the architectures get copied. Architecture setting is only considered when you do Build & Run (for the run part - you can still open generated VS project and build for another architecture afterwards).

    If you use the Executable Only build type, then only that particular architecture gets built. You're probably not using this because you can't easily build a bundle out of it.