Files
Test-Multiplayer/Library/PackageCache/com.unity.collab-proxy@1e5e48aff19d/Editor/CloudDrive/RefreshAsset.cs
pelpanagiotis 329b7d3183 First Commit
2025-12-21 18:31:02 +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);
}
}
}