Skip to content

Commit 545e6c5

Browse files
committed
add scene field to Fbx Export Settings UI
1 parent c184e12 commit 545e6c5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ public override void OnInspectorGUI() {
6868
}
6969
}
7070
}
71+
GUILayout.BeginHorizontal ();
72+
73+
GUILayout.Label (new GUIContent (
74+
"Turn Table Scene:",
75+
"Scene to use for reviewing models. If none, a scene will be created on review."));
76+
77+
exportSettings.turntableScene = EditorGUILayout.ObjectField (
78+
exportSettings.turntableScene, typeof(SceneAsset), false
79+
);
7180

7281
GUILayout.EndHorizontal ();
7382
GUILayout.FlexibleSpace ();
@@ -92,6 +101,9 @@ public class ExportSettings : ScriptableSingleton<ExportSettings>
92101
public bool mayaCompatibleNames;
93102
public bool centerObjects;
94103

104+
[SerializeField]
105+
public UnityEngine.Object turntableScene;
106+
95107
/// <summary>
96108
/// The path where Convert To Model will save the new fbx and prefab.
97109
///

0 commit comments

Comments
 (0)