Search Issue Tracker
By Design
Votes
0
Found in
2020.2.0a5
2020.2.0a9
Issue ID
1248326
Regression
Yes
[PackMan] Package Manager window isn't refreshed when calling AssetDatabase.Refresh() after making changes to a package
How to reproduce:
1. Open the attached "1248326 repro" project
2. Open the Package Manager window from Window > Package Manager
3. Select the "Simple Package" package from the list
4. Press "Switch Package" from MyMenu > Switch Package
Expected result: description and path of the "Simple Package" are updated and new values are shown in the Package Manager window
Actual result: description and path of the "Simple Package" aren't updated and old values are shown in the Package Manager window
Reproducible with: 2020.2.0a5, 2020.2.0a15
Not reproducible with: 2018.4.23f1, 2019.4.0f1, 2020.1.0b12, 2020.2.0a4
Notes:
-The package is updated only after Unity loses and regains focus or the reload button is pressed in the Package Manager
-The .json file in the Assets folder is refreshed as expected after modifying it and calling AssetDatabase.Refresh()
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Only the left screen is rendering when using Render Graph Fullscreen Blit in Meta Quest 2
- Context menu with the "Revert" option doesn't appear when pressing the right mouse button on a "Vector2" or "Vector3" property in the Inspector of a custom shader
- Missing Render Feature "Full Screen Pass Render Feature" in any “Universal Renderer Data” asset when upgrading from 2022.3
- Inconsistent ParticleSystemVertexStream.PercentageAlongTrail data range in Trail Texture Modes except "Stretch"
- The Graph Debug Window can be right clicked through and the Node Workspace is manipulated instead
Resolution Note (2020.2.X):
UnityEditor.PackageManager.Client.Resolve() should be called to resolve this issue.
If it is known that only the package metadata changed, the AssetDatabase.Refresh() call can be replaced with Client.Resolve() entirely.
If it's unknown what has changed in the package, then both AssetDatabase.Refresh() and Client.Resolve() should be called.
The Editor should be updated to the latest 2020.2 version if it does not have access to the Client.Resolve() function.