Search Unity

ARCore: Create Image Database at runtime build

Discussion in 'AR' started by Sadlercs, May 15, 2018.

  1. Sadlercs

    Sadlercs

    Joined:
    Aug 2, 2015
    Posts:
    3
    I can create an image database at runtime in the editor, but when building out to Android, I get an error stating that the functions I used no longer exist. The functions belong to ARCore. Is there a reason why the functions and members are erased on build? Is there a way around this?
     
  2. Bilelmnasser

    Bilelmnasser

    Joined:
    May 16, 2014
    Posts:
    18
    hello there :)
    check those scripts is there is something like :
    Code (CSharp):
    1. #if (UNITY_EDITOR)
    2. ... your class/code ...
    3. #endif
    then remove those tags because that compiler flag erase them from built