Search Issue Tracker
In Progress
Fix In Review for 6000.0.X
Under Consideration for 6000.2.X
Votes
1
Found in
2021.3.44f1
2022.3.49f1
6000.0.22f1
6000.1.0a7
6000.2.0a1
Issue ID
UUM-83299
Regression
No
"Component (...) had become dangling during an undo operation." warning undoing creating a light
*Steps to reproduce:*
# Create a new URP project.
# Project View > Create > Rendering > URP Asset (with Universal Renderer).
# Set this newly created asset as the SRP in Project Settings > Graphics.
# Hierarchy > Right-click > Light > Directional Light.
# Press Ctrl+Z.
*Actual results:*
{code:java}
Component of type MonoBehaviour was added to Directional 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 ()
{code}
*Expected results:* This warning should not appear on such a basic workflow.
*Reproducible with versions:* 6000.0.32f1, 6000.0.22f1, 2022.3.49f1, 2022.1.0a1, 2021.3.44f1 2021.2.0b1
*Couldn't test:* 2021.2.0a10, 2021.2.0a1 - couldn't create pipeline asset
*Tested on (OS):* Windows 11
Notes: warnings are also thrown when undoing Point Light or Spot Light creation
Comments (1)
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
- ListView fails to display items when the source list is cleared and a single element is added
- UI Toolkit ':hover' state remains active when another panel is drawn over the hovered element and Touch input is used
- Unsupported Orient modes can be selected and throw errors when using Strip VFX
- "Tab" key exits the name text field in the VFX Graph tab when renaming the Property
- Shader warnings are thrown when deleting blocks in the Ribbon VFX Graph
afzalyounas86
Sep 30, 2024 17:08
This warning likely indicates that a component was left in an invalid state during the undo process while creating the light. urdusehat.com