GetDirtyCount
Returns an integer that indicates the number of times the specified object's serialized properties have changed.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
GetDirtyCount(int)
Returns an integer that indicates the number of times the specified object's serialized properties have changed.
public static int GetDirtyCount(int instanceID)
Parameters
The object's instance ID.
Returns
Type | Description |
|---|---|
| int |
Remarks
This count is incremented each time a call to EditorUtility.SetDirty changes the object's serializable properties, and is reset to zero when the object is saved.
Additional Resources: EditorUtility.IsDirty, EditorUtility.SetDirty.
GetDirtyCount(EntityId)
Returns an integer that indicates the number of times the specified object's serialized properties have changed.
public static int GetDirtyCount(EntityId entityId)
Parameters
Returns
Type | Description |
|---|---|
| int |
Remarks
This count is incremented each time a call to EditorUtility.SetDirty changes the object's serializable properties, and is reset to zero when the object is saved.
Additional Resources: EditorUtility.IsDirty, EditorUtility.SetDirty.
GetDirtyCount(Object)
Returns an integer that indicates the number of times the specified object's serialized properties have changed.
public static int GetDirtyCount(Object target)
Parameters
The object.
Returns
Type | Description |
|---|---|
| int |
Remarks
This count is incremented each time a call to EditorUtility.SetDirty changes the object's serializable properties, and is reset to zero when the object is saved.
Additional Resources: EditorUtility.IsDirty, EditorUtility.SetDirty.