File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,19 @@ public class ExportSettingsEditor : UnityEditor.Editor {
11
11
public override void OnInspectorGUI ( ) {
12
12
ExportSettings exportSettings = ( ExportSettings ) target ;
13
13
14
+ // Increasing the label width so that none of the text gets cut off
15
+ EditorGUIUtility . labelWidth = 300 ;
16
+
14
17
exportSettings . weldVertices = EditorGUILayout . Toggle ( "Weld Vertices:" , exportSettings . weldVertices ) ;
15
18
exportSettings . embedTextures = EditorGUILayout . Toggle ( "Embed Textures:" , exportSettings . embedTextures ) ;
19
+ exportSettings . mayaCompatibleNames = EditorGUILayout . Toggle ( "Convert to Maya Compatible Naming on export:" ,
20
+ exportSettings . mayaCompatibleNames ) ;
21
+
22
+ if ( ! exportSettings . mayaCompatibleNames ) {
23
+ EditorGUILayout . HelpBox (
24
+ "Disabling this feature may result in lost material connections, and unexpected character replacements in Maya." ,
25
+ MessageType . Warning ) ;
26
+ }
16
27
17
28
if ( GUI . changed ) {
18
29
EditorUtility . SetDirty ( exportSettings ) ;
@@ -26,6 +37,7 @@ public class ExportSettings : FbxExporters.EditorTools.ScriptableSingleton<Expor
26
37
{
27
38
public bool weldVertices = true ;
28
39
public bool embedTextures = false ;
40
+ public bool mayaCompatibleNames = true ;
29
41
30
42
[ MenuItem ( "Edit/Project Settings/Fbx Export" , priority = 300 ) ]
31
43
static void ShowManager ( )
You can’t perform that action at this time.
0 commit comments