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
- [Tile Palette] Sprites not rendering when brush tool "Paint a filled box with active brush" is used for the first time
- Adding available Nodes with longer names in Fragment Context window overflow Fragment Context window in Shader Graph
- "Layer Palette Profile" Asset is automatically applied to the second Terrain but doesn't load any layers
- "Terrain Tools" shortcut conflicts with the Overlays shortcut by default
- Longer Shader Graph Property Reference names breaks VFX Graph Output Particle Node
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