Unity Issue Tracker - A different Font Asset is applied when the original Font Asset is deleted while UI Builder is open
Closed
UUM-101476
A different Font Asset is applied when the original Font Asset is deleted while UI Builder is open
Unity: UI Builder
Won't Fix
6.5.X
6.4.X
6.3.X
6.2.X
6.1.X
6.0.X
2022.3.X
6000.1 is no longer a supported version of Unity. Please see corresponding 6000.2 port instead (if applicable)
How to reproduce:
1. Open the project "IN-97269_FontAssetReassignment"
2. In the Project window, open "buttons.uxml"
3. In the UI Builder window, click on "Button 2"
4. In the Project window delete "SecondAsset.asset"
5. Observe UI Builders Inspector -> Text -> Font Asset
Expected result: Font Asset field is assigned to none
Actual result: Font Asset field is assigned to another Font Asset in the project
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
When the Font Asset is automatically reassigned, it does not work until manually switching it to some other Font Asset (or None) and switching back
When deleting the last Font Asset in the project, instead of assigning None it assigns Missing
The Font Asset reassigns to the first buttons Font Asset if it has an Font Asset, if it doesn’t then it goes to the next button until it has a Font Asset
The button keeps a reference to the original Font Asset, if a new Font Asset is made with the same name as the one that was deleted it automatically assigns it to the Font Asset field
Prioritise and Follow this issue
Have a workaround or additional info about this issue?