ConvertGameObjectToPrefab
(go, saveLocation, skipDiskWrite)
GameObject
Convert a GameObject to a prefab. This will write the newly created prefab to disk and set the prefab source on the GameObject.
Returns the converted GameObject, which may be a clone of the original if it was part of a prefab instance, or null on failure.