Applying prefab overrides doesn't save to the right nested prefab

Issue #853 open
Christophe Sauveur created an issue

1. What happened?

When trying to apply an overridden value on a Unity-vanilla nested prefab, the saved value is always saved to the top level prefab instead. The menu that appears when right-clicking the overridden value in the inspector does not even give all the potential options as Unity would normally do (“Apply to Prefab A”, “Apply to Nested Prefab B”, …).

2. How can we reproduce it?

  1. Open the provided project and load the sample scene
  2. Unwrap the prefab in the scene and select the object named LeafGameObject
  3. Change the value of the Test String to anything you like
  4. It is now overridden and the override marker (line on the left side of the inspector) should appear
  5. Right-click on the field and select “Apply value to prefab “Leaf Game Object” (the menu that appears is not consistent with normal Unity’s behavior in that case - see screenshot)
  6. The override is now gone but it is saved to the “RootPrefab” instead of the “NestedPrefab”.

3. If screenshots would help explain or demonstrate your issue, please include these.

4. What version of Unity are you using?

2021.3.4f1

5. What version of Odin are you using? (See "Tools > Odin Inspector > About")

3.0.13

6. Do you have Editor Only mode enabled?

Yes

7. What operating system are you on?

macOS Monterey 12.4.1

Comments (6)

  1. Fábio Cardoso Marques

    Hi, we can still reproduce this issue with version 3.1.14.3 (tested on both Unity versions 2021.3.19 and 2023.1.20). Can we expect progress on this issue any time soon?

  2. Log in to comment