Skip to content

Commit 898781f

Browse files
committed
grey out LOD and object position selection if anim only export
1 parent b3852c7 commit 898781f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Assets/FbxExporters/Editor/ExportModelSettings.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public override void OnInspectorGUI ()
2626
exportSettings.include = (ExportModelSettingsSerialize.Include)EditorGUILayout.Popup((int)exportSettings.include, new string[]{"Model(s) Only", "Animation Only", "Model(s) + Animation"});
2727
GUILayout.EndHorizontal();
2828

29+
// greyed out if animation only
30+
EditorGUI.BeginDisabledGroup(exportSettings.include == ExportModelSettingsSerialize.Include.Anim);
2931
GUILayout.BeginHorizontal();
3032
EditorGUILayout.LabelField(new GUIContent("LOD level", "Select which LOD to export."), GUILayout.Width(LabelWidth - FieldOffset));
3133
exportSettings.lodLevel = (ExportSettings.LODExportType)EditorGUILayout.Popup((int)exportSettings.lodLevel, new string[]{"All", "Highest", "Lowest"});
@@ -35,6 +37,7 @@ public override void OnInspectorGUI ()
3537
EditorGUILayout.LabelField(new GUIContent("Object(s) Position", "Select an option for exporting object's transform."), GUILayout.Width(LabelWidth - FieldOffset));
3638
exportSettings.objectPosition = (ExportModelSettingsSerialize.ObjectPosition)EditorGUILayout.Popup((int)exportSettings.objectPosition, new string[]{"Local Centered", "World Absolute", "Local Pivot"});
3739
GUILayout.EndHorizontal();
40+
EditorGUI.EndDisabledGroup ();
3841

3942
GUILayout.BeginHorizontal();
4043
EditorGUILayout.LabelField(new GUIContent("Transfer Root Motion To", "Select bone to transfer root motion animation to."), GUILayout.Width(LabelWidth - FieldOffset));

0 commit comments

Comments
 (0)