Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Creating packages for UPM and serving them over a scoped registry

Discussion in 'Editor & General Support' started by Reeley, Oct 31, 2019.

  1. Reeley

    Reeley

    Joined:
    Feb 23, 2017
    Posts:
    44
    Hi i currently investigate switching to UPM for our inhouse tooling.
    I set up a npm registry (Verdaccio) and uploaded a test package. Which shows up in the UPM without any trouble.
    But when downloading the package i get this error:

    Read only asset Packages/com.company.product./Editor has no meta file.

    Seems like Unity wont generate .meta files for the imported package.
    Interestingly, when i import the package via 'Add package from disk...' it will create those .meta files for me.

    So why is this behaviour so different? Is this a bug or do i have to add .meta files to a package when i want to import it via registry?
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,816
  3. Reeley

    Reeley

    Joined:
    Feb 23, 2017
    Posts:
    44
    Hey thanks for the reply, but im not entirely sure what Standard asset package have in common with UPM packages. Arent those two different concepts?

    Im talking about those here:
    https://docs.unity3d.com/Manual/Packages.html