How to reproduce:
1. Open the “SpriteProjectRepro“ project
2. Open the “SampleScene“
3. Go to the “Window > UI Toolkit > UI Builder“
4. Open the “reproUI.uxml“ asset in the UI Builder
5. Open the “#TestButton“ Button in the Inspector pane
6. Drop-down the Inlined Styles section then drop-down the Text sub-section
7. Drop-down the Text Shadow USS property
8. Set the Horizontal Offset to 1 px
9. Observe the Viewport pane
Expected result: The “reprono“ Sprite Asset does not disappear from the “#TestButton“ Button
Actual result: The “reprono“ Sprite Asset disappears from the “#TestButton“ Button
Reproducible with: 2023.2.0a18, 2023.2.2f1, 2023.3.0a16
Not reproducible with: 2022.3.14f1, 2023.2.0a17
Could not test with: 2021.3.33f1 (Corrupted Sprite Asset Material)
Reproducible on: macOS 13.5.2 (Intel), Windows 10 Pro
Not reproducible on: No other environment tested
Notes:
- Workaround: In the Attributes section add the Sprite Asset in the Icon Image field
- Also reproducible when Vertical Offset is set to more than 0 px
- Also reproducible in the Game view
- Reproducible in Player