Steps to reproduce:
1. Create new Unity project
2. In Hierarchy window create Cube GO
3. Select Cube GO
4. In Inspector window select “Add Component”
5. Select Animation > Animation
6. Add Animation Component
7. Press on kebab button on Animation Component
8. Select to Remove the Component
9. Press “Add Component” button again
10. Observe Console window
Actual results: Warning is thrown in the Console window “Same id: -398957092 given to both Animation and Animation. Selection may be wrong.
UnityEngine.GUIUtility:ProcessEvent (UnityEngine.EntityId,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:227)”
Expected results: No warnings are thrown in the Console window
Reproducible with versions: 6000.1.0a6 (3b090bf0e2f9), 6000.1.16f1, 6000.2.13f1, 6000.3.0f1, 6000.4.0a5, 6000.5.0a1
Not reproducible with versions: 6000.0.62f1, 6000.1.0a5 (025711cf5da4)
Tested on (OS): Ubuntu 24.04, macOS Silicon Tahoe 26.0 (M1)