Hello, I’m working on an editor script that allows me to ping an object in the hierarchy by referring to it with the FileID (m_LocalIdentfierInFile) found in the .scene file. This is a tool that’s supposed to be used in conjunction with merge requests to allow someone to quickly find what object was modified in the scene.
Note the correspondence on the Transform inspector and the cut out from the scene file.
This has been working fine for all Components and GameObjects so far, but I’ve noticed that PrefabInstances and all it’s components doesn’t seem to have any FileID available in the editor, even though it’s there in the file.
I assume this is because Prefabs technically live in the project, and as such the prefab instance you see in the scene is just reflecting a modified version of the prefab as opposed to a direct copy. How would I go about finding out what GameObject in the hierarchy is corresponding to this PrefabInstance FileID, so that I can ping/select it for the user?
This is in Unity 2020.3 btw.