IsDirty
Gets a boolean value that indicates whether the specified object has changed since the last time it was saved.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
IsDirty(int)
Gets a boolean value that indicates whether the specified object has changed since the last time it was saved.
public static bool IsDirty(int instanceID)
Parameters
The object's instance ID.
Returns
Type | Description |
|---|---|
| bool | True if the object has changed; otherwise false. |
Remarks
Additional Resources: EditorUtility.GetDirtyCount, EditorUtility.SetDirty.
IsDirty(Object)
Gets a boolean value that indicates whether the specified object has changed since the last time it was saved.
public static bool IsDirty(Object target)
Parameters
The object.
Returns
Type | Description |
|---|---|
| bool | True if the object has changed; otherwise false. |
Remarks
Additional Resources: EditorUtility.GetDirtyCount, EditorUtility.SetDirty.