Search Unity

GetCorrespondingObjectFromSource issue

Discussion in 'Prefabs' started by Ng0ns, Jun 6, 2019.

  1. Ng0ns

    Ng0ns

    Joined:
    Jun 21, 2016
    Posts:
    34
    Hello good people.
    I'm trying to figure out how to get the original name of a prefab (through an instance of it).

    I would assume this did it when called on a instance, but all I get is null.
    Code (CSharp):
    1. PrefabUtility.GetCorrespondingObjectFromSource(gameObject).name
    What gives :)