Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
0
Found in
2018.4
2019.4.4f1
2020.2
Issue ID
1269686
Regression
No
Duplicating a Prefab instance in the Scene will cause instances of the same Prefab to be disabled and re-enabled
How to reproduce:
1. Open the user's attached "copy.zip" project
2. Open the "SampleScene" Scene
3. Expand all the GameObjects in the Hierarchy window
4. Right-click on the "Cube(7)" GameObject
5. Press on the "Duplicate" menu item
6. Observe the Console log
Expected result: OnEnable function is called only for the newly created instance
Actual result: OnDisable and OnEnable functions are called for all GameObjects (including prefab instances) in the same transform hierarchy as the duplicated instance.
Reproducible with: 2018.4.26f1, 2019.4.8f1, 2020.1.2f1, 2020.2.0a20
Note:
- The issue is also reproducible if copy and paste shortcuts are pressed on the keyboard while the Prefab instance is still selected in the Hierarchy window, but doesn't reproduce if after copying the instance, it is unselected and then pasted
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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0a13
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.6f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.8f1
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.27f1