Search Issue Tracker
Duplicate
Votes
0
Found in
5.1.0f3
Issue ID
710932
Regression
Yes
UI components reference isn't restored after Redo
Steps to reproduce:
1. Open attached project ("ReferenceBug")
2. Open "TestWindow.cs" and notice that components to Game Object are added using Undo.AddComponent
2. Open "TestWindow/Test" and press space to create new game object
3. Select "New Game Object" and in Inspector notice that this object has "Mesh Renderer" and "Button" components
4. Undo (ctrl+z) Add component (references in TestWindow of mesh renderer and button should be set to null)
5. Press ctrl + y to Redo and notice that Button reference is still null
6. Select "New Game Object" and in Inspector notice that it has "Mesh Renderer" and "Button" components.
Note: This bug occurs with any UI component except Canvas. Repro can be observed in this video: http://www.screencast.com/t/gn32WrnnUC
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
- "The referenced script (Unknown) on this Behaviour is missing!" warning is thrown on SceneIDMap when using a built-in template from HDRP
- Error "UXML validation error: Line 3, Position 6: The element 'VisualElement' in namespace 'UnityEngine.UIElements' has incomplete content." is present when running the test for Schema Definitions
- The light range of HDRP realtime spot lights is halved when HDRPAsset Lit Shader Mode is set to Forward or Both
- Shortcut is set for the wrong function when changing multiple shortcuts
- "[CreateProperty]" on nullable generic types causes compilation error when using a non-nullable type
This is a duplicate of issue #722346