Search Issue Tracker
Fixed in 2022.3.18f1
Fixed in 2023.3.0a1
Votes
1
Found in
2022.3.14f1
2023.2.2f1
2023.3.0a16
Issue ID
UUM-57936
Regression
No
Sprite Resolver does not reset to default value when using an Animation State with Write Defaults
This issue happens because the sprite hash inside the Sprite Resolver component is animated using an int with DiscreteEvaluation attribute. When the played clip is finished, the animated int is set to 0 instead of being reset to its original value.
A simpler repro project and description of the problem can be found here:
[https://unity.slack.com/archives/C06TQ7L6A/p1701939855969839]
Reproduction steps:
1. Open the “ReproProject“ project
2. Open the "Assets/HappyHarvest/Scenes/House_Interior" scene
3. Enter Play Mode
4. Make sure the mouse cursor is below the “Character“ GameObject in the Game View
5. Observe the “Character“ GameObject’s shoe sprites in the Game View
6. Press the “W“ key on the keyboard
7. Repeat steps 4 and 5
Expected result: The shoe sprites are reset to the default sprites
Actual result: One shoe sprite is reset incorrectly, the sprite from the last used animation is visible instead
Reproducible with: 2022.3.14f1, 2023.2.2f1, 2023.3.0a16
Couldn’t test with: 2021.3.33f1 (compilation errors)
Reproducible on: Windows 11 Pro (22H2)
Not reproducible on: No other environment tested
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (fix version 2022.3.18f1):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-58573
Resolution Note (fix version 2023.3.0a1):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-58573