Exemplo n.º 1
0
    private void DrawCustomCacheSize()
    {
        if (OnlineMaps.isPlaying || !customCacheSize.HasValue)
        {
            customCacheSize = cache.GetCustomCacheSizeFast();
        }

        float  customCacheSizeMb  = customCacheSize.Value / 1000000f;
        string customCacheSizeStr = customCacheSizeMb.ToString("F2");

        EditorGUILayout.LabelField("Current Size (mb)", customCacheSizeStr);
        if (GUILayout.Button("Clear"))
        {
            cache.ClearCustomCache();
            customCacheSize = null;
        }
    }