Skip to content

Impossible to revert or apply prefab property overrides #2

Description

@lgarczyn

This is a screenshot from a modified prefab instance. The event has been modified, then the modifications have been removed

However, as expected, the prefab override persist. It should be removable by doing right-click => reset, but no right click options appear

image

The blue marker for a prefab property override is hidden by the event box, with only one blue pixel visible

In the override list, the same issue persists:

image

This can be fixed in DrawListHeader

            // Header
            {
                // ReSharper disable once CoVariantArrayConversion
                string eventParams = (string)GetEventParams.Invoke(null, new[] { m_DummyEvent });
                string hex = EditorGUIUtility.isProSkin ? "#ffffff70" : "#00000070";
                guiContent.text = (string.IsNullOrEmpty(m_Text) ? "Event" : m_Text) + $"<color={hex}>{eventParams}</color>";

                EditorGUI.BeginProperty(foldoutRect, guiContent, property);
                property.isExpanded = EditorGUI.BeginFoldoutHeaderGroup(foldoutRect, property.isExpanded, guiContent, foldoutHeader);
                EditorGUI.EndFoldoutHeaderGroup();
                EditorGUI.EndProperty();
            }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions