I recently updated my project from 2019.4.2f1 to 2019.4.13f1.
Since the update I no longer can select greyed out fields like “Script” field or “Base” of prefab variant.
or
Usually after clicking on such field in a “Project” window, an asset would be shown, but since update clicking on fields does nothing.
Unability to select bases of variants is the most painful.
Workaround for selecting a base.
Create new script in an “Editor” folder and paste this code to it. After right clicking on any prefab variant, button in “Tools” should appear .
using UnityEditor;
public class PrefabsMenuItem
{
[MenuItem("Assets/Tools/Show Base of Prefab Variant", priority = 18)]
public static void PingBaseOfPrefabVariant()
{
GameObject[] gameObjects = Selection.GetFiltered<GameObject>(SelectionMode.Assets);
GameObject baseOfPrefab = PrefabUtility.GetCorrespondingObjectFromSource(gameObjects[0]);
EditorGUIUtility.PingObject(baseOfPrefab);
}
[MenuItem("Assets/Tools/Show Base of Prefab Variant", priority = 18, validate = true)]
public static bool PingBaseOfPrefabVariantValidate()
{
GameObject[] gameObjects = Selection.GetFiltered<GameObject>(SelectionMode.Assets);
return gameObjects.Length > 0 && PrefabUtility.GetPrefabAssetType(gameObjects[0]) == PrefabAssetType.Variant;
}
}