Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X
Votes
1
Found in
2021.3.44f1
2022.3.49f1
6000.0.22f1
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
- Create Node Menu is not closing and “NullReferenceException: Object reference not set to an instance of an object” error is thrown when Shader Graph window is closed
- Assert error is thrown when the Editor language is set to one of the experimental ones in an HDRP project
- A BatchDrawCommand is using a pass from the shader “Universal Render Pipeline/Particles/Lit” that is not SRP Batcher compatible
- The Scene does not get rendered in the Player when MSAA is enabled and more than one Camera is used
- Crash on mono_object_get_class when generating Font Atlas of a specific font file
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