Skip to content

Commit 4cd635a

Browse files
author
AJubrey
committed
[CHANGED] reduced the necessary width of our menu
1 parent 8badf0e commit 4cd635a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ namespace FbxExporters.EditorTools {
1010
[CustomEditor(typeof(ExportSettings))]
1111
public class ExportSettingsEditor : UnityEditor.Editor {
1212
Vector2 scrollPos = Vector2.zero;
13-
const float LabelWidth = 225;
14-
const float SelectableLabelMinWidth = 100;
15-
const float BrowseButtonWidth = 55;
13+
const float LabelWidth = 125;
14+
const float SelectableLabelMinWidth = 90;
15+
const float BrowseButtonWidth = 25;
1616

1717
public override void OnInspectorGUI() {
1818
ExportSettings exportSettings = (ExportSettings)target;
@@ -29,7 +29,7 @@ public override void OnInspectorGUI() {
2929
}
3030
GUILayout.BeginVertical();
3131
exportSettings.mayaCompatibleNames = EditorGUILayout.Toggle (
32-
new GUIContent ("Convert to Maya Compatible Naming:",
32+
new GUIContent ("Compatible Naming:",
3333
"In Maya some symbols such as spaces and accents get replaced when importing an FBX " +
3434
"(e.g. \"foo bar\" becomes \"fooFBXASC032bar\"). " +
3535
"On export, convert the names of GameObjects so they are Maya compatible." +
@@ -57,7 +57,7 @@ public override void OnInspectorGUI() {
5757
GUILayout.MinWidth(SelectableLabelMinWidth),
5858
GUILayout.Height(EditorGUIUtility.singleLineHeight));
5959

60-
if (GUILayout.Button ("Browse", EditorStyles.miniButton, GUILayout.Width (BrowseButtonWidth))) {
60+
if (GUILayout.Button ("...", EditorStyles.miniButton, GUILayout.Width (BrowseButtonWidth))) {
6161
string initialPath = ExportSettings.GetAbsoluteSavePath();
6262

6363
// if the directory doesn't exist, set it to the default save path
@@ -98,7 +98,7 @@ public override void OnInspectorGUI() {
9898
var options = ExportSettings.GetDCCOptions();
9999

100100
exportSettings.selectedDCCApp = EditorGUILayout.Popup(exportSettings.selectedDCCApp, options);
101-
if (GUILayout.Button("Browse", EditorStyles.miniButton, GUILayout.Width(BrowseButtonWidth))) {
101+
if (GUILayout.Button("...", EditorStyles.miniButton, GUILayout.Width(BrowseButtonWidth))) {
102102
var ext = "";
103103
switch (Application.platform) {
104104
case RuntimePlatform.WindowsEditor:

0 commit comments

Comments
 (0)