Search Unity

Compiler #defines for installed packages

Discussion in 'Package Manager' started by ecurtz, Mar 8, 2019.

  1. ecurtz

    ecurtz

    Joined:
    May 13, 2009
    Posts:
    640
    It would be really nice if there were automatic compiler defines so I could add optional code dependent on whether a package was installed or not...

    #if PACKAGE_MATHEMATICS
     
  2. steego

    steego

    Joined:
    Jul 15, 2010
    Posts:
    969
  3. ecurtz

    ecurtz

    Joined:
    May 13, 2009
    Posts:
    640