Search Unity

Optional package dependency?

Discussion in 'Editor & General Support' started by jwvanderbeck, Jul 4, 2019.

  1. jwvanderbeck

    jwvanderbeck

    Joined:
    Dec 4, 2014
    Posts:
    825
    How can I set up something so that one package depends on and uses another package but only if that other package is present. In other words that second package is optional and extends functionality if present. If it is not present, the first package can still run without it.

    The "old" way I could do this using #define conditionals, but with packages it seems more complicated because you have to define the dependencies.
     
  2. jwvanderbeck

    jwvanderbeck

    Joined:
    Dec 4, 2014
    Posts:
    825
    So I guess this post just arrived dead on arrival. Is there really no way to accomplish this in the new system? I feel like if that is the case then we've lost something important.
     
  3. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,334
    You should ask in the dedicated package manager subforum.