Bug report: http://fogbugz.unity3d.com/default.asp?1203667_l6ljh6n0oa212j36
Issue tracker: Not available yet
Repro steps:
- Open Test scene in this project.
- Select “Main Camera” object in the scene.
- See “GetCorrespondingObjectFromSource returns OBJECT” message in console which is CORRECT because it’s an instance of the actual prefab and it can return its source prefab.
- Select “Main Camera” prefab in the project.
- See “GetCorrespondingObjectFromSource returns NULL” message in console which is CORRECT because we are editing the actual prefab and it doesn’t have a corresponding source. It’s itself already.
- Double click “Main Camera” prefab in the project to open it in prefab edit mode.
- See “GetCorrespondingObjectFromSource returns NULL” message in console which is WRONG. This time we are editing a live copy of the prefab in a temporary prefab editting scene. To be able to render custom inspector properties, we need GetCorrespondingObjectFromSource to return the real prefab source from the project but it just returns null which prevents us to compare the live values with the prefab values while rendering the inspector.