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
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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