Search Unity

Unity packages with plugin's override newer plugin's in a Unity project

Discussion in 'Package Manager' started by SimonDarksideJ, Aug 8, 2019.

  1. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,624
    Came across this issue yesterday with the Oculus integration. It seems that ANY Unity package is considered FIRST before any project assets existing in a solution.

    Case in point the Oculus packages (provided by unity) and the Oculus Asset (provided by Oculus).

    The Oculus asset includes an API updater, which will detect the installed plugin (even in the Unity Package) and download the latest as required, placing it in the Project Assets folder. However, this newer plugin is completely ignored in favour of the existing plugin in a Unity Package, which seems the wrong way round.

    Today:
    • Oculus Unity package uses 1.38.1 (only recently updated even though the newer was released earlier)
    • Oculus asset downloads 1.39
    When run, only the 1.38.1 plugin is used, ignoring the newer plugin in Assets.

    The simple fix is to remove the Unity package, which then forces the solution to revert to using the plugin in the asset project. However, this is not obvious and could lead to issues, especially as Unity FORCES the install of the package when a Platform is selected in the XR settings.

    So either:
    • Packages containing 3rd party dll's need to be updated more frequently
    • The consumption order of plugin's needs to prioritise the plugin in the Asset folder FIRST, allowing newer overrides to be used.
     
    Stephen-Hodgson likes this.
  2. erick_unity

    erick_unity

    Unity Technologies

    Joined:
    Jan 4, 2017
    Posts:
    41
    hi @SimonDarksideJ, the XR team is looking into this with oculus, they'll get back to you on this thread when they have some news.
     
  3. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,624
    That's great news. I did also log an new forum issue with their asset, as it's generating tons of errors and warnings in 2019, including deprecated functions like WWW.
    Thanks for picking this up as it's creating issues since the Quest firmware update which requires 1.39
     
  4. EdBlais

    EdBlais

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    280
    Hey @SimonDarksideJ before updating to the new version of Oculus, had you already been running your project in play mode? After updating to the new version of the plugin did you restart the Editor? There is a plugin issue where once a plugin is loaded and used, the Editor holds onto it's resource until it is closed. This issue prevents overriding if the plugin in question is the overridable version (like the OVRPlugin from the Oculus package manager package).
    If you restart your Editor, can you reproduce this?