Files
2026-11-01 23:39:55 +02:00

20 lines
431 B
C#

using UnityEditor;
namespace Unity.PlasticSCM.Editor.CloudDrive
{
internal static class RefreshAsset
{
internal static void BeforeLongAssetOperation()
{
AssetDatabase.DisallowAutoRefresh();
}
internal static void AfterLongAssetOperation()
{
AssetDatabase.AllowAutoRefresh();
AssetDatabase.Refresh(ImportAssetOptions.Default);
}
}
}