Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

(Case 902136) Dragging prefab from Project across the Scene View to Hierarchy can result in error

Discussion in '2017.1 Beta' started by TrickyHandz, Apr 16, 2017.

  1. TrickyHandz

    TrickyHandz

    Joined:
    Jul 23, 2010
    Posts:
    196
    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
    1. Drag a prefab object from the project view to the Hierarchy
    2. 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.
    3. 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
     
  2. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,657
    Hey, thanks for the excellent report - especially for the video, very clear! I've put it on our QA fast-track for processing.
     
    TrickyHandz likes this.
  3. TrickyHandz

    TrickyHandz

    Joined:
    Jul 23, 2010
    Posts:
    196
    Glad the video helped. So much easier to show this one happening than to just attempt writing down repro steps.

    Cheers,
    TrickyHandz