Files
GameDevTVObstacleDodge/Library/PackageCache/com.unity.collab-proxy@1ec4e416a4af/Editor/CloudDrive/RefreshAsset.cs

20 lines
431 B
C#
Raw Normal View History

2026-01-08 16:50:20 +00:00
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);
}
}
}