public static GUIContent[] GetGUIContents(LabelIcon labelIcon) { var methodInfo = GetMethodInfo_IconContent(); object[] parameters = new object[] { "sv_label_" + labelIcon.ToString() }; int length = (int)LabelIcon.Length; GUIContent[] contents = new GUIContent[length]; for (int i = 0; i < length; i++) { contents[i] = methodInfo.Invoke(null, parameters) as GUIContent; } return(contents); }
public static GUIContent GetGUIContent(LabelIcon labelIcon) { var methodInfo = GetMethodInfo_IconContent(); return(methodInfo.Invoke(null, new object[] { "sv_label_" + labelIcon.ToString() }) as GUIContent); }