Search Issue Tracker


Fixed in 2020.3.46f1, 2021.3.20f1, 2022.2.8f1, 2023.1.0b5, 2023.2.0a3



Found in






Issue ID




MonoBehaviour dragged and dropped to the GameObject ends up adding twice



*Steps to reproduce:*
1. Create a new Project
2. Create a new Script in the Project Window
3. Create Cube GameObject in the Hierarchy
4. Drag the created script on to the Cube GameObject

*Expected result:* The Script Component is added once
*Actual result:* The Script Component is added twice

*Reproducible with:* 2020.3.45f1, 2022.2.6f1, 2023.1.0b2, 2023.1.0b3, 2023.2.0a1
*Not Reproducible with:* 2022.2.5f1, 2023.1.0a1, 2023.1.0b1

*Reproduced on:* macOS Ventura 13.1(M1 Max), Mac Intel, Windows 10, Windows 11

*Workarounds:* Remove one of the scripts added, Add scripts with "Add component" button, Drag and drop script onto the game object in the hierarchy instead of the inspector

Comments (10)

  1. unity_bPdElP5fCmP1dw

    Apr 25, 2023 05:22

    Issue still happening with 2021.3.19f1

  2. homehearthgames

    Mar 30, 2023 02:35

    Confirmed happening on 2021.3.19f1

  3. FelinaLain

    Mar 21, 2023 23:33

    Also noticed this happening with 2021.3.19f1

  4. Alper_Yilmaz

    Mar 15, 2023 15:13

    I was using 2021.3.14f1 and got this problem after i upgraded to 2021.3.19f1.
    But i have found a solution for this problem. When you drag your script to inspector try to drop it near the sides as much as you can of the blue bar that appears.

  5. travh2008

    Mar 11, 2023 20:08

    This issue occurred on 3/11/2023 with 2021.3.19f1

  6. jordan45134

    Feb 28, 2023 20:58

    I downloaded the editor version 2021.3.19f1 today, the problem is still there.

  7. ComradeR

    Feb 23, 2023 21:29

    Have same issue in 2021.3.19f1

  8. dumoulinantoine

    Feb 22, 2023 13:38

    occured in 2021.3.19f1

  9. MartianGatsby

    Feb 21, 2023 09:14

    still having this issue 2022.2.7f1

  10. mikeymusch

    Feb 19, 2023 20:57

    this issue is still occuring in 2022.2.7f1

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.