Manual     Reference     Scripting  
  
Scripting > Editor Classes > EditorUtility   

EditorUtility.ResetGameObjectToPrefabState  

static function ResetGameObjectToPrefabState (go : GameObject) : boolean

Description

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.