multiple xr toolkit package
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ApiCacheEditor.cs 603B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEditor;
  4. using VRC.Core;
  5. [CustomEditor(typeof(ApiCache))]
  6. public class ApiCacheEditor : Editor {
  7. public override void OnInspectorGUI()
  8. {
  9. foreach (System.Type type in ApiCache.cache.Keys)
  10. {
  11. Dictionary<string, ApiCache.CacheEntry> typeCache = ApiCache.cache[type];
  12. EditorGUILayout.BeginHorizontal();
  13. EditorGUILayout.PrefixLabel(type.Name);
  14. EditorGUILayout.LabelField(typeCache.Count.ToString());
  15. EditorGUILayout.EndHorizontal();
  16. }
  17. }
  18. }