Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

[ad_1]

I have to create a NPM bundle containing a bundle for Unity. I would like to make use of native code, i. e. a local library. The bundle must assist:

  • Home windows x86 64bit
  • Linux x86 64bit
  • Embedded Linux ARM

I’ve written the code for the three native libraries and the C# glue code. Every library is in its personal subdirectory inside the bundle folder construction and Unity has generated a meta file every time. I. e., I’ve

    <bundle root>/
    ├── bundle.json
    ├── README.md
    ├── (different recordsdata)
    └── belongings/
        ├── Runtime.meta
        └── Runtime/
            └── Plugins/
                ├── arm.meta
                ├── arm/
                │   ├── libConnect.so
                │   └── libConnect.so.meta
                ├── linux.meta
                ├── linux/
                │   ├── libConnect.so
                │   └── libConnect.so.meta
                ├── home windows.meta
                └── home windows/
                    ├── Join.DLL
                    └── Join.DLL.meta

Relying on the platform I construct for, I would like Unity to make use of the suitable native library.

Nevertheless, I can not seem to set the properties on the native libs to the proper values utilizing the Unity Inspector on the libraries. Particularly, I can’t appear to set the Embedded Linux ARM lib to ARM CPU with out the Linux lib additionally altering to ARM CPU. Vice versa, changint the Linux lib to “Intel 64-bit” CPU additionally units the Embedded Linux ARM lib to that CPU. Additionally, the home windows DLL at all times appears to finish up in Embedded Linux builds, it doesn’t matter what settings I take advantage of. I attempted in- and excluding completely different platforms for various libs, however nonetheless, adjustments to 1 lib appear to magically mess up adjustments I made to the opposite libs.

Please inform me how I can achive my purpose, to have three native libs for various platforms and have Unity use the proper one relying on which platform I construct for.

[ad_2]

Leave a Reply

Your email address will not be published. Required fields are marked *