Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ClearDirty(Object)

Clear /target's/ dirty flag.
Read time 1 minuteLast updated 9 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void ClearDirty(Object target)

Parameters

target

Remarks

Unity uses the dirty flag to find changed assets that must be saved to disk. Clear the dirty flag if you make changes to an asset that don't need to be saved, such as temporary changes that you subsequently revert.