Search Issue Tracker
Fixed
Fixed in 2023.2.X, 2023.2.0f1
Votes
0
Found in
2021.3.22f1
2022.2.14f1
2023.1.0b13
2023.2.0a9
Issue ID
UUM-33248
Regression
No
[URP] Warning message when pressing Undo on creating a light object in scene
Repro:
- Start a new project with any URP template
- Create any light object in the scene (Point or Directional lights, for example)
- Press Undo
- Notice warning in the console:
Component of type MonoBehaviour was added to Spot Light using GameObject.AddComponent() and had become dangling during an undo operation.
Use Undo.AddComponent to correctly add a component which can be handle by the undo system
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()
Reproducible on: 2023.2, 2023.1, 2022.2 and 2021.3
Not reproducible on: 2021.2 , default or HDRP render pipelines
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (fix version 2023.2):
Unable to reproduce this issue. Due to lack of resources we will close it. If you think that it is an important problem to solve please re-open