Search Issue Tracker
Fixed
Fixed in 2020.3.46f1, 2021.3.20f1, 2022.2.8f1, 2023.1.0b5, 2023.2.0a3
Votes
2
Found in
2020.3.45f1
2021.3.19f1
2022.2.6f1
2023.1.0b2
2023.2.0a1
Issue ID
UUM-26276
Regression
Yes
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
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
- Long Prefab save times when using Unity 2022.2 and higher
- Console displays error "UnityException: Creating asset at path Assets/Scenes/ .scenetemplate failed." during scene template saving
- "Development Build" watermark is shown in non-development UWP release builds
- Console errors appear when the Inspector is set to Debug and a GameObject is selected
- A script public variable value is not used when set in the Inspector window
FelinaLain
Mar 21, 2023 23:33
Also noticed this happening with 2021.3.19f1
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.
travh2008
Mar 11, 2023 20:08
This issue occurred on 3/11/2023 with 2021.3.19f1
jordan45134
Feb 28, 2023 20:58
I downloaded the editor version 2021.3.19f1 today, the problem is still there.
ComradeR
Feb 23, 2023 21:29
Have same issue in 2021.3.19f1
dumoulinantoine
Feb 22, 2023 13:38
occured in 2021.3.19f1
MartianGatsby
Feb 21, 2023 09:14
still having this issue 2022.2.7f1
mikeymusch
Feb 19, 2023 20:57
this issue is still occuring in 2022.2.7f1