Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X, 6000.1.X
Votes
1
Found in
2021.3.44f1
2022.3.49f1
6000.0.22f1
6000.1.0a7
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.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
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
- A Console error is not handled correctly when using #pragma kernel with the Kernel name not provided
- L(a,b) expression in float fields has erratic behaviour when ordering due to using instanceID as an index
- InvalidOperationException is thrown when switching to a custom Debug Draw Mode in Scene View
- [Android][Vulkan] Skybox and Environment effects flicker in the Player when using the Vulkan Graphics API
- "Shortcuts conflict" warning pops up when the shortcuts are different ("Shift + Mouse 2" and "Mouse 2")
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