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

static function ResetGameObjectToPrefabState (go : GameObject) : bool


Resets the properties of game object and all attached components 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.