Steps to reproduce:
1. Create a new project
2. Create a new GameObject (for example: 3D Object > Cube)
3. Undo the GameObject creation
4. Observe the Hierarchy window
Actual results: Object does not disappear from the Hierarchy window
Expected results: Object disappears from the Hierarchy window
Reproducible with versions: 6000.1.0b2
Not reproducible with versions: 6000.1.0b1, 6000.0.34f1, 2022.3.56f1, 2021.3.47f1
Tested on (OS): macOS Sequoia 15.1 (Intel), macOS Sequoia 15.2 (Intel), macOS Sequoia 15.2 (M1), Windows 10 Pro, Ubuntu 22.04
Not reproduced on: Windows 11
Notes:
- Issue is reproducible with keyboard shortcut and with the context option (Edit > Undo)
- If another GameObject is added and the undo action is performed again, the GameObject that was previously created will disappear
- "Undo Add Universal Additional light" is displayed on the undo context option after creating the GameObject and keeping the focus on it
- Unfocusing the newly created GameObject makes issue not reproducible