Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Is it possible to use projects that have C# libraries in Android?

Discussion in 'General Discussion' started by bw92, Mar 6, 2020.

  1. bw92

    bw92

    Joined:
    Apr 17, 2019
    Posts:
    20
    Hey all,

    I was wondering if it is possible to use external libraries such as this, in Android applications?

    I would like to build an AR project that uses machine learning, however, the popular AR tools require me to build to Android and the machine learning package is in C#. Do C# libraries/packages/functions work in Android?
     
  2. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,192
    If they didn't you wouldn't be able to use Unity. :p
     
  3. bw92

    bw92

    Joined:
    Apr 17, 2019
    Posts:
    20
    Haha I was thinking this would be a dumb question, but I had to ask it anyway :p.

    So just to clarify, any scripts written in C# using external C# libraries (as long as .dll files are attached) should work when ported to Android?

    I just wanted to double-check as I'm performing computations (with C# scripts in the project) using the AR scene.
     
  4. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,192
    Yes, assuming that there isn't any code in there expecting a different platform.
     
    RecursiveFrog likes this.
  5. bw92

    bw92

    Joined:
    Apr 17, 2019
    Posts:
    20
    Tyvm :D