How to reproduce:
- Create a new Unity Project and open it
- Import the “MismatchRepro“ script into the Project
- Right-click in the Hierarchy window and select “Create Empty”
- Attach the “MismatchRepro“ script to the newly created GameObject
- Drag the created GameObject from the Hierarchy window to the Project window to create a Prefab
- Open the “MismatchRepro” script and uncomment the commented-out lines
- Save the script and return to Unity to let it recompile
- Open the “MismatchRepro“ script again and change the default “Min” and “Max” values to something else
- Save the script and return to Unity to let it recompile
- Select the created GameObject Prefab in the Project window
- Observe the “Min” and “Max“ values in the Inspector window
- Double-click the created GameObject Prefab in the Project window to open it in Prefab Isolation mode
- Observe the “Min” and “Max“ values in the Inspector window
Actual result: The Inspector displays the old, “Min” and “Max” values when selecting the Prefab in the Project window, but displays the newly updated values when opening the Prefab in Isolation mode
Expected result: The Inspector values should remain consistent and match whether the Prefab is selected in the Project window or opened in Isolation mode
Reproducible with: 6000.0.0f1, 6000.0.83f1, 6000.3.23f1, 6000.6.0f1, 6000.7.0a6
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note:
When testing across different Unity versions, you usually do not need to repeat all the steps. You can simply upgrade the existing project and start directly from Step 8