summaryrefslogtreecommitdiff
path: root/VRCSDK3AvatarsQuestLegacy/Assets/VRCSDK/Dependencies/VRChat/Editor/Components/ApiCacheEditor.cs
blob: 297fc8fb7464e1c019dd01a3900436026cc198a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using VRC.Core;

[CustomEditor(typeof(ApiCache))]
public class ApiCacheEditor : Editor {
    public override void OnInspectorGUI()
    {
        foreach (System.Type type in ApiCache.cache.Keys)
        {
            Dictionary<string, ApiCache.CacheEntry> typeCache = ApiCache.cache[type];
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.PrefixLabel(type.Name);
            EditorGUILayout.LabelField(typeCache.Count.ToString());
            EditorGUILayout.EndHorizontal();
        }
    }
}