Reported this earlier today. Thought I should post it here in case anyone else encounters this.
----------Bug Report----------
Dragging prefab from Project Window across the Scene View to Hierarchy can result in erroneous instantiation
Reproduction Steps
- Drag a prefab object from the project view to the Hierarchy
- One GameObject is instantiated at prefab transform origin (0,0,0) and another is instantiated at the visual edge of the Scene View and the Hierarchy. The second GameObject is instantiated with HideFlags set to HideFlags.HideInHierarchy.
- Save and reload scene to show the second GameObject in the Hierarchy.
EXPECTED RESULT:
A single GameObject is instantiated at world origin.
ADDITIONAL NOTES:
-
It is also of note that the erroneously created GameObject does not follow the unique naming convention where a number is appended to the GameObject name on instantiation.
-
If another prefab is dragged directly into the Scene View rather than the Hierachy, it destroys the erroneously instantiated object from step 2.
-
After encountering this issue, if a prefab is dragged into a new scene or reloaded scene there is another behavioral bug that causes the prefab object to move from an appropriate world position towards the Scene View camera. This glitch does not always happen.
-
Video is attached to report showing reproduction of bug behavior
------------End Report----------
Cheers,
TrickyHandz