Search Issue Tracker

Fixed in 2019.1.X

Votes

2

Found in

2017.1.0b7

Issue ID

919832

Regression

No

DetachChildren should fail nicely when called during activation/deactivation

Scene Management

-

Reproduction Steps:
1. Import attached project.
2. Open "DetachBug" scene.
3. Activate Play mode.
4. Disable Play mode.

Result: Unity freezes.

Note: According to the user, the bug can also occasionally crash the editor.

Reproducible with: 5.5.3p4, 5.6.1p2, 2017.1.0b9, 2017.2.0a3

Comments (1)

  1. Angel-of-Time

    Mar 04, 2018 18:43

    [ExecuteInEditMode]

    private void OnDisable()
    {
    transform.DetachChildren();
    }

    I started in Edit Window. (Not in play mode.) Parent has 2 children. Everytime Unity freezes.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.