forked from zxl/LaboratoryProtection
16 lines
265 B
C#
16 lines
265 B
C#
|
using UnityEngine;
|
|||
|
|
|||
|
namespace PMaker.Extension
|
|||
|
{
|
|||
|
public static class ComponentExtension
|
|||
|
{
|
|||
|
public static void SetDirty(this Component root)
|
|||
|
{
|
|||
|
#if UNITY_EDITOR
|
|||
|
UnityEditor.EditorUtility.SetDirty(root);
|
|||
|
#endif
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|