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

static function ResetToPrefabState (obj : Object) : bool

Description

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.