public static Component SelectComponentField(GUIContent label, Component[] components, GUIContent[] componentLabels, Component selectedComp) { var position = EditorGUILayout.GetControlRect(true); return(SPEditorGUI.SelectComponentField(position, label, components, componentLabels, selectedComp)); }
public static Component SelectComponentField(string label, Component[] components, Component selectedComp) { var position = EditorGUILayout.GetControlRect(true); return(SPEditorGUI.SelectComponentField(position, EditorHelper.TempContent(label), components, selectedComp)); }