@@ -13,13 +13,26 @@ public override void OnInspectorGUI ()
13
13
{
14
14
var exportSettings = ( ( ExportModelSettings ) target ) . info ;
15
15
16
- //exportSettings.info.test = EditorGUILayout.TextField (exportSettings.info.test);
17
-
18
16
GUILayout . BeginHorizontal ( ) ;
19
17
EditorGUILayout . LabelField ( new GUIContent ( "Export Format:" , "Export the FBX file in the standard binary format." +
20
18
" Select ASCII to export the FBX file in ASCII format." ) , GUILayout . Width ( LabelWidth - FieldOffset ) ) ;
21
19
exportSettings . exportFormat = ( ExportModelSettingsSerialize . ExportFormat ) EditorGUILayout . Popup ( ( int ) exportSettings . exportFormat , new string [ ] { "ASCII" , "Binary" } ) ;
22
20
GUILayout . EndHorizontal ( ) ;
21
+
22
+ GUILayout . BeginHorizontal ( ) ;
23
+ EditorGUILayout . LabelField ( new GUIContent ( "Include:" , "Select whether to export models, animation or both." ) , GUILayout . Width ( LabelWidth - FieldOffset ) ) ;
24
+ exportSettings . include = ( ExportModelSettingsSerialize . Include ) EditorGUILayout . Popup ( ( int ) exportSettings . include , new string [ ] { "Model(s) Only" , "Animation Only" , "Model(s) + Animation" } ) ;
25
+ GUILayout . EndHorizontal ( ) ;
26
+
27
+ GUILayout . BeginHorizontal ( ) ;
28
+ EditorGUILayout . LabelField ( new GUIContent ( "LOD level:" , "Select which LOD to export." ) , GUILayout . Width ( LabelWidth - FieldOffset ) ) ;
29
+ exportSettings . lodLevel = ( ExportSettings . LODExportType ) EditorGUILayout . Popup ( ( int ) exportSettings . lodLevel , new string [ ] { "All" , "Highest" , "Lowest" } ) ;
30
+ GUILayout . EndHorizontal ( ) ;
31
+
32
+ GUILayout . BeginHorizontal ( ) ;
33
+ EditorGUILayout . LabelField ( new GUIContent ( "Object(s) Position:" , "Select an option for exporting object's transform." ) , GUILayout . Width ( LabelWidth - FieldOffset ) ) ;
34
+ exportSettings . objectPosition = ( ExportModelSettingsSerialize . ObjectPosition ) EditorGUILayout . Popup ( ( int ) exportSettings . objectPosition , new string [ ] { "Local Centered" , "World Absolute" , "Local Pivot" } ) ;
35
+ GUILayout . EndHorizontal ( ) ;
23
36
}
24
37
}
25
38
0 commit comments