Search Issue Tracker

Active

Votes

4

Found in

2021.2.0b2

2021.3

2021.3.0f1

2022.1

2022.2

Issue ID

1420807

Regression

Yes

"Can't remove Light because UniversalAdditionalLightData" error appears when destroying certain VFX in Play Mode

URP Features

-

How to reproduce:
1. Open the user's attached project
2. Enter Play Mode
3. Press the "D" key and select "NovaMissileSoftBlue"
4. Left click in the Game view and observe the Console window

Expected result: No errors
Actual result: "Can't remove Light because UniversalAdditionalLightData (Script) depends on it" errors appear

Reproducible with: 12.0.0 (2021.2.0b2), 12.1.6 (2021.2.19f1), 12.1.7 (2021.3.4f1), 13.1.8 (2022.1.5f1), 14.0.3 (2022.2.0a16)
Not reproducible with: 7.7.1 (2019.4.39f1), 10.9.0 (2020.3.36f1), 12.0.0 (2021.2.0b1)

Reproduced on: macOS 11.6 (Intel)

Notes:
-With some effects, it's not reproducible
-Reproducible with VFX: SoulMissile(Crimson,Green,Orange,Purple), NukeMissile(Blue,Fire), LightningMissile(Blue,Green,Pink,Yellow), LightningSoftMissile(Blue,Green,Pink,Yellow), SparkleMissile(Blue,Green,Pink,Yellow), StormMissile

Comments (3)

  1. THE2FUN

    Mar 31, 2024 22:41

    Yeah same here, i want to remove/destroy light from gameobject it saying

    "Can't remove Light because UniversalAdditionalLightData (Script) depends on it"

    Unity 2022.3.22LTS

    UNITY PLEASE FIX THIS

  2. abandon_games

    Aug 10, 2022 11:38

    I was getting this error because I was destroying the `Light` component instead of the game object that the `Light` component is attached to - seems like the proper way to get rid of the light data is to destroy the game object itself.

  3. MastaMax

    Jul 08, 2022 03:33

    Same issue here. Not a blocker, but logs are clogged with this error meesage:
    "Can't remove Light because UniversalAdditionalLightData (Script) depends on it"

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.