Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ResetToPrefabState(Object)

Resets the properties of the component or game object to the parent Prefab state.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
Warning
Deprecated. Use RevertObjectOverride.
public static bool ResetToPrefabState(Object obj)

Parameters

Returns

Type

Description

bool

Remarks

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