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
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
- Enabling “Editor Extension Authoring” in UI Builder doesn’t dirty the document and saving with shortcut doesn’t persist the state
- WebRequest.Create() function fails with "URI prefix is not recognized" errors when the project is built for Linux Standalone or Windows Dedicated Server
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