Unity Issue Tracker - OnValidate callback is called twice when entering Prefab Mode
Fixed
UUM-17190
OnValidate callback is called twice when entering Prefab Mode
Unity: Scene Hierarchy
Fixed
2023.1.X
2022.2.X
Won't Fix
2022.1.X
2021.3.X
2022.1 is not supported anymore
Created ports from 23.1 back to 21.3. Need to close this
How to reproduce:
1. Open the attached “OnValidateIssue“ project
2. Add the "New Prefab" prefab to the Hierarchy
3. Edit the prefab in Prefab Mode (">" button in the Hierarchy)
4. Observe the Console
Expected result: "OnValidate" log appears once
Actual result: "OnValidate" log appears twice