Prefab Variant's right-click menu does not have the expected"Apply to *** Prefab" options for individual fields

Issue #511 open
Richard Baxter created an issue

I'm not sure if this is a feature request or a 'bug' but it's a problem that is affecting my workflow and is overriding a pretty important feature of Unity's new prefab setup I think.

When using Odin, the right click menu has context buttons for Copy/Paste

Current _ Prefab Variants.png

However, with Odin disabled there are "Apply to Prefab" buttons that are very useful in normal workflow

Expected _ Prefab Variants.png

I would say that the Apply options on a field-by-field basis is pretty important. There are workarounds but it is a hassle to apply the whole Component, go into the prefab editor, or go to the prefab root object (in this case it's a child object so I'd have to select the parent, go into the override menu at the top, select the field, apply that... it's a hassle)

So, maybe a feature request, I think it's a bug since it removed expected functionality of Unity's.

Either way, could we have those options back? :)

Comments (15)

  1. Tor Esa Vestergaard

    Should be, yes - though I'm not sure when 2.0.18 will come out. Fixing this bug led me into a rather deep rabbit hole by necessity, which saw some much-needed refactoring, optimizations and fixes in PropertyTree's path lookup methods - which were the ultimate cause of the issue.

  2. Jan Hackl

    Hey just checked out and the context menu is still the same (“Apply to Prefab …“ option not there).

    EDIT: also the blue lines on the sides indicating a prefab change aren’t there… maybe this is related?

    EDIT: EDIT: Later found out that the blue line issue was because of a custom drawer, but the right click option is still gone, also for simple types and default editors.

    Will the fix be applied in a later version?

    Kind regards,

  3. Tor Esa Vestergaard
    • changed status to open

    It would appear this issue has started occurring again, or that the prior fix did not handle all cases - I'll focus all the discussion here.

  4. Tor Esa Vestergaard

    Incidentally, my testing shows that a temporary fix for this is to hold shift while right-clicking for the context menu - this will cause Odin to invoke Unity’s own generic context menu and “steal” all the items from it, thereby getting Unity’s own context menu points for applying the prefab value. I’ll keep investigating why Odin’s own menu item isn’t showing up properly.

  5. Tor Esa Vestergaard

    Alright, I should have a fix for this which will be included in the next patch. If anyone is up for verifying my fix, please contact me on Discord to receive a hotfix build. Otherwise, I recommend people use the Shift + right-click work-around until the next patch is out.

  6. Julien Heimann

    There’s still a somewhat obscure but serious issue that changed values that are assumed to be applied through this new menu are not really applied!
    They show as not bold anymore with the new value, but if prefab mode is entered the previous value is shown to be still there (also noticable after reload too).
    Also, the dropdown only lists the immediate prefab, so it’s not possible to apply the value to a deeper parent as it is possible with unity’s menu.

  7. Log in to comment