Search Issue Tracker

Active

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

*Couldn't test:* 2021.2.0a1 - couldn't create pipeline asset

*Tested on (OS):* Windows 11

Comments (1)

  1. 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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.