Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
|asset||Any GameObject that is part of the Prefab Asset to save.|
|savedSuccessfully||The result of the save action, either successful or unsuccessful. Use this together with the console log to get more insight into the save process.|
GameObject The root GameObject of the saved Prefab Asset.
Use this function to save the version of an existing Prefab Asset that exists in memory back to disk.
The given object has to be a GameObject from an existing Prefab Asset. If you have a GameObject from a Prefab instance and get the corresponding object, you will have the corresponding GameObject from the Prefab Asset.
See Also: PrefabUtility.SaveAsPrefabAsset, PrefabUtility.GetCorrespondingObjectFromSource.
Did you find this page useful? Please give it a rating: