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
- Rich Text is not correctly highlighted when searching through Debug Logs in the Console window
- Shader warning in 'Hidden/Core/DebugOccluder' thrown after building High Definition 3D Sample Template
- Audio Mixer “+” buttons overlap with UI when the Audio Mixer window layout is set to Horizontal
- "Clear" button in the "Set project display name" closes all the pop-up instead of clearing just a name from the field
- Video Player renders no video on specific devices when using Vulkan
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