UnityEditor.OSUtil.GetDefaultCachePath C# (CSharp) Method

GetDefaultCachePath() private method

private GetDefaultCachePath ( ) : string
return string
        public static extern string GetDefaultCachePath();
    }

Usage Example

示例#1
0
        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);
        }
All Usage Examples Of UnityEditor.OSUtil::GetDefaultCachePath