Skip to content

Commit c752d07

Browse files
committed
add export setting option to select LOD to export
1 parent c217443 commit c752d07

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ public override void OnInspectorGUI() {
6262
exportSettings.ExportFormatSelection = EditorGUILayout.Popup(exportSettings.ExportFormatSelection, new string[]{"Binary", "ASCII"});
6363
GUILayout.EndHorizontal();
6464

65+
GUILayout.BeginHorizontal();
66+
EditorGUILayout.LabelField(new GUIContent("LOD Export:", "Select which LOD to export."), GUILayout.Width(LabelWidth - FieldOffset));
67+
exportSettings.lodExportType = (ExportSettings.LODExportType)EditorGUILayout.Popup((int)exportSettings.lodExportType, new string[]{"All", "Highest", "Lowest"});
68+
GUILayout.EndHorizontal();
69+
6570
GUILayout.BeginHorizontal();
6671
EditorGUILayout.LabelField(new GUIContent(
6772
"Export Path:",
@@ -442,6 +447,15 @@ public static string[] DCCVendorLocations
442447

443448
public int selectedDCCApp = 0;
444449

450+
[SerializeField]
451+
public LODExportType lodExportType = LODExportType.All;
452+
453+
public enum LODExportType {
454+
All = 0,
455+
Highest = 1,
456+
Lowest = 2
457+
}
458+
445459
/// <summary>
446460
/// The path where Convert To Model will save the new fbx and prefab.
447461
///

0 commit comments

Comments
 (0)