private void DrawStaticClasses(FindAllStatic.StaticClassInfo st) { EditorGUILayout.BeginHorizontal(); GUILayout.Label($"[{st.ClassType}]: is a static class.", EditorStyles.largeLabel); if (!string.IsNullOrEmpty(st.Path)) { if (GUILayout.Button($"Show: [{st.ClassType}]")) { Selection.activeObject = AssetDatabase.LoadMainAssetAtPath(st.Path); } } EditorGUILayout.EndHorizontal(); }
private void DrawFoldedStaticVariables(FindAllStatic.StaticClassInfo st) { if (st.AllStaticFields.Count > 0) { st.Folded = EditorGUILayout.Foldout(st.Folded, $"Show static variables of {st.ClassType.Name}", true, EditorStyles.foldout); if (st.Folded) { foreach (FieldInfo v in st.AllStaticFields) { GUILayout.Label($"[{v.Name}]: is a static variable = {v.GetValue(null)}"); } } } }