@@ -499,32 +499,26 @@ public static bool InstallMaya(MayaVersion version = null, bool verbose = false)
499
499
}
500
500
}
501
501
502
- namespace Editors
502
+ class IntegrationsUI
503
503
{
504
- class IntegrationsUI
504
+ public static void InstallMayaIntegration ( )
505
505
{
506
- const string MenuItemName1 = "FbxExporters/Install Maya Integration" ;
507
-
508
- [ MenuItem ( MenuItemName1 , false , 0 ) ]
509
- public static void OnMenuItem1 ( )
510
- {
511
- var mayaVersion = new Integrations . MayaVersion ( ) ;
512
- if ( ! Integrations . InstallMaya ( mayaVersion , verbose : true ) ) {
513
- return ;
514
- }
506
+ var mayaVersion = new Integrations . MayaVersion ( ) ;
507
+ if ( ! Integrations . InstallMaya ( mayaVersion , verbose : true ) ) {
508
+ return ;
509
+ }
515
510
516
- int exitCode = Integrations . ConfigureMaya ( mayaVersion ) ;
511
+ int exitCode = Integrations . ConfigureMaya ( mayaVersion ) ;
517
512
518
- string title , message ;
519
- if ( exitCode != 0 ) {
520
- title = string . Format ( "Failed to install Maya {0} Integration." , mayaVersion . Version ) ;
521
- message = string . Format ( "Failed to configure Maya, please check logs (exitcode={0})." , exitCode ) ;
522
- } else {
523
- title = string . Format ( "Completed installation of Maya {0} Integration." , mayaVersion . Version ) ;
524
- message = string . Format ( "Enjoy the new \" Unity\" menu in Maya {0}." , mayaVersion . Version ) ;
525
- }
526
- UnityEditor . EditorUtility . DisplayDialog ( title , message , "Ok" ) ;
513
+ string title , message ;
514
+ if ( exitCode != 0 ) {
515
+ title = string . Format ( "Failed to install Maya {0} Integration." , mayaVersion . Version ) ;
516
+ message = string . Format ( "Failed to configure Maya, please check logs (exitcode={0})." , exitCode ) ;
517
+ } else {
518
+ title = string . Format ( "Completed installation of Maya {0} Integration." , mayaVersion . Version ) ;
519
+ message = string . Format ( "Enjoy the new \" Unity\" menu in Maya {0}." , mayaVersion . Version ) ;
527
520
}
521
+ UnityEditor . EditorUtility . DisplayDialog ( title , message , "Ok" ) ;
528
522
}
529
523
}
530
524
}
0 commit comments