Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by zzgrzyt · Mar 01, 2018 at 08:08 AM · packagepackagesmanagerversion controlsource-control

How to work with Unity Package Manager in Unity 2017.2.x+

Unity Package Manager was added in 2017.2.x. When upgrading our project, we saw that it creates a bunch of empty folders for packages in the project folder, as follows:

 .
 └── Packages
     ├── com.unity.ads
     ├── com.unity.ads@2.0.3
     ├── com.unity.analytics
     ├── com.unity.analytics@2.0.13
     ├── com.unity.purchasing
     ├── com.unity.purchasing@0.0.19
     ├── com.unity.standardevents
     └── com.unity.standardevents@1.0.10

All of them are empty. The generated manifest is also empty:

 $ cat UnityPackageManager/manifest.json
 {
         "dependencies": {
         }
 }

This raises a few questions:

  1. Are those empty folders actually used? Removing them and re-opening the project seems to re-create them.

  2. Do they need to (or should) be checked into the project repository? Since they are generated empty, they cannot be added to Git or Mercurial (which is what we use).

  3. How do we pick or pin specific packages or versions of those packages?

  4. How do we guarantee that our project is built with the same versions across all developer machines and build machines? The last thing we want is one of the machines to randomly pick a different version of a package and produce different results! I tried moving the contents of those packages from my local user folder into the project folder and repository, but the moved files do not seem to be used, and instead the ones in local user folder get repopulated...

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by okcompute_unity · Mar 03, 2018 at 09:55 PM

Hi @zzgrzyt ,

1. You should not see these folders in the project browser. If this is the case, please open a bug. 2. The file manifest.json should be persisted in your source control system. Please see https://docs.unity3d.com/Manual/ExternalVersionControlSystemSupport.html for more info. (Please note the folder was renamed Packages in 2018.1) 3. In 2017.2, this should not be exposed as stated above. So you cannot do anything. In 2018.1, a proper UI is exposed to manage packages. 4. The project manifest (`manifest.json`) will give you this guarantee.


Regards,


Pascal

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image zzgrzyt · Mar 08, 2018 at 02:11 PM 0
Share
  1. These folders are in the project folder on disk, not visible in the Unity Editor project browser.

  2. O$$anonymous$$

  3. O$$anonymous$$

  4. So, in 2018.1 the manifest.json is properly populated and allows for control, but in earlier versions it's "broken" as in cannot actually control the versions? Is it possible that in 2017.2 or 2017.3 Unity will "randomly" decide to update one of these packages on its own?

Thanks for the answers!

avatar image okcompute_unity zzgrzyt · Mar 08, 2018 at 06:37 PM 0
Share

1 - This is strange. You shouldn't see this in your project. This strangely looks like the folder layout of the cache. Can you give me the path of your project?

4 - In 2017.2 or 2017.3, the package manager is not used at all. Nothing should be populated. The intention was there to enable the feature but in the end we did not had the time to introduce a proper UI.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

76 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

"This project is using a new input system but..." window that is not fully visible 1 Answer

How to access Unity.UI classes in script in Unity 2019.2.1? 0 Answers

My scene disappeared after import package standard package, HELP! 0 Answers

Failed to start the Unity Package Manager local server process. 7 Answers

TexturePlatformSettingsHelper does not contain a definition for GetBuildTargetName XR Plugin Management error? 4 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges