public static string GetCacheLocation()
{
var cachePath = EditorPrefs.GetString(PathKey);
var enableCustomPath = EditorPrefs.GetBool(CustomPathKey);
var result = cachePath;
if (!enableCustomPath || string.IsNullOrEmpty(cachePath))
{
result = Paths.Combine(OSUtil.GetDefaultCachePath(), "CacheServer");
}
return(result);
}