Search Issue Tracker
Fixed in 2020.3.46f1
Fixed in 2020.3.X, 2021.3.X, 2022.2.X, 2023.1.X, 2023.2.X, 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
Comments (10)
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
unity_bPdElP5fCmP1dw
Apr 25, 2023 05:22
Issue still happening with 2021.3.19f1
homehearthgames
Mar 30, 2023 02:35
Confirmed happening on 2021.3.19f1
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