Search Issue Tracker
Won't Fix
Votes
0
Found in
6000.1.0a8
6000.2.0a1
7000.0.0a11
Issue ID
UUM-90588
Regression
No
SubMesh GameObject duplicates and warning is logged to console when trying to undo failed deletion
Steps to reproduce:
- Open a Unity Project
- Import TextMeshPro Essential Resources via Window > TextMeshPro > Import TMP Essential Resources
- Import TextMeshPro Examples & Extras via Window > TextMeshPro > Import TMP Examples and Extras
- Create a Text (TMP) GameObject via GameObject > UI > Text - TextMeshPro
- Select the new Text (TMP) Object
- In the Text Input section on the TextMeshPro - Text component, add the below text:
<font="Anton SDF" material="Anton SDF - Drop Shadow">Test</font>
- A SubMesh GameObject should be automatically created as a child object of the Text (TMP) Object
- Try to delete this SubMesh GameObject by either selecting it and clicking the delete key, or right-clicking on it and clicking delete
- Observe that it doesn't delete. This is expected as the font is still being used in a rich text tag
- Press ctrl + z to undo
Actual results: A duplicate of the SubMesh is created in the Hierarchy, and the warning 'Child GameObject 'TMP SubMeshUI [Anton SDF - Drop Shadow]' was not registered into undo system and became dangling during an undo operation.' is logged to the console
!image-2024-12-05-12-30-09-711.png|width=975,height=41!
Expected results: A duplicate of the SubMesh is not created, and there is no warning logged to console.
Reproducible with versions: 7000.0.0a11, 6000.1.0a8, 6000.0.30f1, 2022.3.54f1, 2021.3.45f1
Not reproducible with versions: -
Can't test with versions:
Tested on (OS): Windows 11
Notes:
- In 2021.3 there is no warning when undoing, but the SubMesh still doubles up. In all later versions the warning occurs
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
Changing this behavior has more risks than benefits.