Unity Issue Tracker - Warning message when pressing Undo on creating a light object in scene
Fixed
UUM-33248
Warning message when pressing Undo on creating a light object in scene
Unity: RP Workflow
URP
Fixed
2023.2.X
Won't Fix
2023.1.X
2022.2.X
2021.3.X
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
This Unity version will no longer be receiving patch updates.
This Unity version will no longer be receiving patch updates.
We acknowledge the issue but it is currently too low priority compared to other issues. Due to lack of resources we will close it. If you think that it is an important problem to solve please re-open
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