Search Issue Tracker
Fixed
Fixed in 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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note (fix version 2023.2.0f1):
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