Search Issue Tracker
Won't Fix
Votes
1
Found in
2022.3.14f1
2023.2.2f1
2023.3.0a16
6000.0.0b11
Issue ID
UUM-57462
Regression
Yes
Prefab overrides cannot be obtained when Serialized via Property
How to reproduce:
1. Open the “PrefabOverrides“ project
2. Open the Test Runner window (Window > General > Test Runner)
3. Make sure the “EditMode” category is selected
4. Select “Run All”
Expected result: Tests fail and “Found 2 Added Game Objects via SerializedProperty -> ParentPrefab” is logged to the Console
Actual result: Tests pass and “Found 0 Added Game Objects via SerializedProperty -> ParentPrefab” is logged to the Console
Reproduced on: 2022.2.0a4, 2022.3.14f1, 2023.2.2f1, 2023.3.0a16
Not reproduced on: 2021.3.33f1, 2022.2.0a3
Reproduced with: macOS 14.1.1 (Intel) (by reporter), Windows 11
Not reproduced with: No other environment tested
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
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
Resolution Note:
m_AddedGameObjects and m_AddedComponents are not intended to be used in the public API and they are not in sync with the actual PrefabInstance state.
The synchronization happens only for short periods of time when we write the PrefabInstance to disk.
When we read the PrefabInstance object from disk we keep this information until the Prefab Merging happens and we clear it immediately after