Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2020.3.X, 2021.1.X

Votes

0

Found in

2019.4

2020.2

2020.2.6f1

2020.3

2021.1

2021.2

Issue ID

1319453

Regression

Yes

OnTransformChildrenChanged doesn't get called in the Edit mode when dragging a Prefab from the Project window to the Hierarchy

Scene Management

-

How to reproduce:
1. Open the user's attached project
2. Open Scenes > SampleScene
3. From the Assets folder drag the 'Prefab' under the Parent object in the Hierarchy
4. Observe the Console

Expected result: 'Children changed! Prefab' appears in the Console
Actual result: The Console is empty

Reproducible with: 2019.4.0f1, 2019.4.22f1, 2020.2.7f1, 2020.3.1f1, 2021.1.0b12, 2021.2.0a9
Not reproducible with: 2018.4.33f1

Notes:
- The PrintChildrenChanged.cs has the [ExecuteAlways] attribute
- The issue doesn't reproduce in the Play mode
- The issue doesn't reproduce with non-Prefab objects
- The issue doesn't reproduce in the Edit mode if the Prefab is already in the Hierarchy

  1. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0a11

  2. Resolution Note (fix version 2021.1):

    Fixed in 2021.1.4f1

  3. Resolution Note (fix version 2020.3):

    Fixed in 2020.3.12f1

Add comment

Log in to post comment