- Home /
Question by
fabio_fig · Sep 22, 2020 at 07:21 AM ·
prefabprefabsprefabutility
How to find the prefab base of a Prefab Variant through code?
When you select a prefab variant, you can see on the inspector which is the Base of that prefab. I've tried different methods of PrefabUtility, but I could not find any that returns that value.
Comment
Answer by fabio_fig · Sep 22, 2020 at 09:03 AM
It seems like PrefabUtility.GetCorrespondingObjectFromSource does the trick.