Search Unity

Script to add scoped registry

Discussion in 'Package Manager' started by leon-sunday, Jun 17, 2021.

  1. leon-sunday

    leon-sunday

    Joined:
    May 19, 2020
    Posts:
    12
    Is there a way to add a scoped registry through a script?

    I have seen that there is a way to add packages by a script but I just can't find information about how to achieve the same for scoped registries.

    https://docs.unity3d.com/ScriptReference/PackageManager.Client.Add.html

    I know that I could just go to the manifest.json and modify it but the JSON parsing feature is very limited in Unity unless you use something like Newtonsoft Json.NET but I would like to avoid using it.

    https://raw.githubusercontent.com/U...jectSettings/PackageManagerProjectSettings.cs

    Seems like the scriptable object for the Package Manager Settings are set as internal... Am I missing something?
     
  2. UnityMaru

    UnityMaru

    Community Engagement Manager PSM

    Joined:
    Mar 16, 2016
    Posts:
    1,227
  3. JLifeDev

    JLifeDev

    Joined:
    Feb 8, 2016
    Posts:
    12