@@ -33,17 +33,6 @@ public override void OnInspectorGUI() {
33
33
EditorGUILayout . LabelField ( "Export Options" , EditorStyles . boldLabel ) ;
34
34
EditorGUI . indentLevel ++ ;
35
35
GUILayout . BeginVertical ( ) ;
36
- exportSettings . mayaCompatibleNames = EditorGUILayout . Toggle (
37
- new GUIContent ( "Compatible Naming:" ,
38
- "In Maya some symbols such as spaces and accents get replaced when importing an FBX " +
39
- "(e.g. \" foo bar\" becomes \" fooFBXASC032bar\" ). " +
40
- "On export, convert the names of GameObjects so they are Maya compatible." +
41
- ( exportSettings . mayaCompatibleNames ? "" :
42
- "\n \n WARNING: Disabling this feature may result in lost material connections," +
43
- " and unexpected character replacements in Maya." )
44
- ) ,
45
- exportSettings . mayaCompatibleNames ) ;
46
-
47
36
exportSettings . autoUpdaterEnabled = EditorGUILayout . Toggle (
48
37
new GUIContent ( "Auto-Updater:" ,
49
38
"Automatically updates prefabs with new fbx data that was imported." ) ,
@@ -418,7 +407,6 @@ public static string[] DCCVendorLocations
418
407
}
419
408
420
409
// Note: default values are set in LoadDefaults().
421
- public bool mayaCompatibleNames = true ;
422
410
public bool autoUpdaterEnabled = true ;
423
411
public bool launchAfterInstallation = true ;
424
412
public bool HideSendToUnityMenu = true ;
@@ -480,18 +468,25 @@ public static ExportModelSettingsSerialize.ObjectPosition GetObjectPosition(){
480
468
return instance . exportModelSettings . info . objectPosition ;
481
469
}
482
470
471
+ public static void SetObjectPosition ( ExportModelSettingsSerialize . ObjectPosition objPos ) {
472
+ instance . exportModelSettings . info . objectPosition = objPos ;
473
+ }
474
+
483
475
public static string GetRootMotionTransferNode ( ) {
484
476
return instance . exportModelSettings . info . rootMotionTransfer ;
485
477
}
486
478
487
479
public static bool AnimateSkinnedMesh ( ) {
488
480
return instance . exportModelSettings . info . animatedSkinnedMesh ;
489
481
}
482
+
483
+ public static bool UseMayaCompatibleNames ( ) {
484
+ return instance . exportModelSettings . info . mayaCompatibleNaming ;
485
+ }
490
486
// ---------------------------------------------------------------------------------
491
487
492
488
protected override void LoadDefaults ( )
493
489
{
494
- mayaCompatibleNames = true ;
495
490
autoUpdaterEnabled = true ;
496
491
launchAfterInstallation = true ;
497
492
HideSendToUnityMenu = true ;
0 commit comments