Search Issue Tracker
By Design
By Design in 6000.5.X
Votes
0
Found in
6000.0.64f1
6000.3.2f1
6000.4.0b1
6000.5.0a3
Issue ID
UUM-130357
Regression
No
AssetDatabase.FindAssets() misses the edited Sprite Atlas when texture is re-imported
How to reproduce:
1. Open the attached “IN-127379” project
2. Find TextureX.jpg (Assets → AreaProcessor → Textures), modify and save it
3. Observe the console window
Actual result: The console only shows 3 sprite atlases
Expected result: The console shows 4 sprite atlases
Reproducible with: 2023.1.0a5, 6000.0.64f1 (5360b7cd7953), 6000.3.2f1, 6000.4.0b1, 6000.5.0a3
Could not test with: 2023.1.0a4 (on Mac this and older versions are very unstable)
Reproducible environment: macOS 26.1 (M1 Pro)
Not reproducible environment: No other environment tested
Notes:
- I suggest changing texture through external image manipulating program and exporting it to the same location
- “.spriteatlas” doesn’t have this issue only “.spriteatlasv2”
- AssetDatabase.FindAssets("t:SpriteAtlas") & Resources.FindObjectsOfTypeAll(typeof(SpriteAtlas) behave the same
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
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Different text alignment in the column header in Entities "System" window
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
Resolution Note:
Modifying Sprites in OnPreprocessTexture will potentially create import issues and should be avoided in this case as Sprites are dependencies of SpriteAtlas.
This is suggested to be done during Build instead:
https://docs.unity3d.com/6000.3/Documentation/ScriptReference/Build.IPreprocessBuildWithReport.OnPreprocessBuild.html
Resolution Note (6000.5.X):
Modifying Sprites in OnPreprocessTexture will potentially create import issues and should be avoided in this case as Sprites are dependencies of SpriteAtlas.
This is suggested to be done during Build instead:
https://docs.unity3d.com/6000.3/Documentation/ScriptReference/Build.IPreprocessBuildWithReport.OnPreprocessBuild.html