Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Optional package dependency?

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

  1. jwvanderbeck

    jwvanderbeck

    Joined:
    Dec 4, 2014
    Posts:
    733
    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:
    733
    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:
    4,942
    You should ask in the dedicated package manager subforum.
     
unityunity