Fix BeginVertical and BeginHorizontal

This commit is contained in:
sinaioutlander
2020-09-13 23:16:12 +10:00
parent 065ab033c9
commit 653b4a2304
18 changed files with 305 additions and 179 deletions

View File

@ -36,6 +36,9 @@ namespace Explorer
public static bool IsEnumerable(Type t)
{
// Not needed for Il2Cpp at the moment. Don't want these to behave as Enumerables.
//if (typeof(Transform).IsAssignableFrom(t)) return false;
return typeof(IEnumerable).IsAssignableFrom(t);
}

View File

@ -68,7 +68,7 @@ namespace Explorer
// ------ toggle active button ------
GUILayout.BeginHorizontal(null);
GUIUnstrip.BeginHorizontal();
GUI.skin.button.alignment = TextAnchor.UpperLeft;
GUI.color = activeColor;
@ -103,7 +103,7 @@ namespace Explorer
SmallInspectButton(_obj);
}
GUILayout.EndHorizontal();
GUIUnstrip.EndHorizontal();
}
public static void SmallInspectButton(object obj)