Unity Issue Tracker - A reference of a Prefab instance to its Prefab gets reset to the instance itself when entering Play Mode
Closed
UUM-1176
A reference of a Prefab instance to its Prefab gets reset to the instance itself when entering Play Mode
Unity: Scene Management
Won't Fix
2019.4.X
2019.4 LTS has reached end-of-life. This port is cancelled.
Reproduction steps:
1. Open the attached project 'PrefabReferenceBug'
2. Open the 'SampleScene' Scene from the 'Scenes' folder
3. Select the 'Other Prefab' Game Object in the Hierarchy
4. Drag and drop the 'Thing Prefab' Game Object from the Assets folder to the 'Other Thing' property
5. Enter the Play Mode
Expected result: The 'Other Thing' property remained set to 'Thing Prefab'
Actual result: The 'Other Thing' property switched back to 'Other Prefab'
If you create another prefab with 'Thing' Component, and set that new Prefab as the value of 'Other Thing' Property of the 'Other Prefab' Game Object and Enter and Exit Play Mode, and then repeat steps 2-4, the bug is not reproducible anymore
Prioritise and Follow this issue
Have a workaround or additional info about this issue?