EditorUtility.ResetToPrefabState Manual     Reference     Scripting  
Scripting > Editor Classes > EditorUtility

static function ResetToPrefabState (obj : Object) : bool


Resets the properties of the component or game object to the parent prefab state

All overrides will be cleared. However the transform.position and rotation of a root game object in a prefab instance will never be cleared.