Hi, I making an editor tool and I need to know the original prefab of a gameobject in playmode,
I’m trying to use PrefabUtility.GetCorrespondingObjectFromSource(gameObject) but it returns null,
Is this possible?
No, the concept of Prefabs doesn’t exist as such at runtime. Runtime instantiation of Prefabs just clones the object, it doesn’t keep track of overrides or what the originating Asset is, or any of the edit time Prefab functionality.
1 Like