Search Unity

Is there a way to specify per platform package dependencies?

Discussion in 'Package Manager' started by darax, Jul 17, 2019.

  1. darax

    darax

    Joined:
    Jul 20, 2015
    Posts:
    13
    IE, if I want to have different ARFoundation versions between iOS and Android.
     
    achimmihca likes this.
  2. samuelb_unity

    samuelb_unity

    Unity Technologies

    Joined:
    Nov 13, 2017
    Posts:
    151
    Hi @darax, it's not possible to have per-platform package dependencies, however you could change your project dependencies from an editor script e.g. using [InitializeOnLoad] and PackageManager.Client.Add()

    In theory, you could even put such a script in a package and depend on that!
     
    canxerian_ likes this.