@@ -13,6 +13,7 @@ public class ExportSettingsEditor : UnityEditor.Editor {
13
13
const float LabelWidth = 130 ;
14
14
const float SelectableLabelMinWidth = 90 ;
15
15
const float BrowseButtonWidth = 25 ;
16
+ const float FieldOffset = 17 ;
16
17
17
18
public override void OnInspectorGUI ( ) {
18
19
ExportSettings exportSettings = ( ExportSettings ) target ;
@@ -51,7 +52,7 @@ public override void OnInspectorGUI() {
51
52
52
53
GUILayout . BeginHorizontal ( ) ;
53
54
EditorGUILayout . LabelField ( new GUIContent ( "Export Format:" , "Export the FBX file in the standard binary format." +
54
- " Select ASCII to export the FBX file in ASCII format." ) , GUILayout . Width ( LabelWidth - 17 ) ) ;
55
+ " Select ASCII to export the FBX file in ASCII format." ) , GUILayout . Width ( LabelWidth - FieldOffset ) ) ;
55
56
exportSettings . ExportFormatSelection = EditorGUILayout . Popup ( exportSettings . ExportFormatSelection , new string [ ] { "Binary" , "ASCII" } ) ;
56
57
GUILayout . EndHorizontal ( ) ;
57
58
@@ -63,7 +64,7 @@ public override void OnInspectorGUI() {
63
64
GUILayout . BeginHorizontal ( ) ;
64
65
EditorGUILayout . LabelField ( new GUIContent (
65
66
"Export Path:" ,
66
- "Relative path for saving Model Prefabs." ) , GUILayout . Width ( LabelWidth - 17 ) ) ;
67
+ "Relative path for saving Model Prefabs." ) , GUILayout . Width ( LabelWidth - FieldOffset ) ) ;
67
68
68
69
var pathLabel = ExportSettings . GetRelativeSavePath ( ) ;
69
70
if ( pathLabel == "." ) { pathLabel = "(Assets root)" ; }
@@ -105,7 +106,7 @@ public override void OnInspectorGUI() {
105
106
GUILayout . BeginHorizontal ( ) ;
106
107
EditorGUILayout . LabelField ( new GUIContent (
107
108
"Integrations Path:" ,
108
- "Installation path for 3D application integrations." ) , GUILayout . Width ( LabelWidth - 17 ) ) ;
109
+ "Installation path for 3D application integrations." ) , GUILayout . Width ( LabelWidth - FieldOffset ) ) ;
109
110
110
111
var IntegrationsPathLabel = ExportSettings . GetIntegrationSavePath ( ) ;
111
112
EditorGUILayout . SelectableLabel ( IntegrationsPathLabel ,
@@ -139,7 +140,7 @@ public override void OnInspectorGUI() {
139
140
GUILayout . BeginHorizontal ( ) ;
140
141
EditorGUILayout . LabelField ( new GUIContent (
141
142
"3D Application:" ,
142
- "Select the 3D Application for which you would like to install the Unity integration." ) , GUILayout . Width ( LabelWidth - 17 ) ) ;
143
+ "Select the 3D Application for which you would like to install the Unity integration." ) , GUILayout . Width ( LabelWidth - FieldOffset ) ) ;
143
144
144
145
// dropdown to select Maya version to use
145
146
var options = ExportSettings . GetDCCOptions ( ) ;
0 commit comments