@@ -82,14 +82,8 @@ public class ModelExporter : System.IDisposable
82
82
// from being passed to command, thus resulting in OnContextItem()
83
83
// being called only once regardless of what is selected.
84
84
const string MenuItemName = "GameObject/Export To FBX..." ;
85
- const string ModelOnlyMenuItemName = "GameObject/Export Model Only..." ;
86
85
87
- const string ClipMenuItemName = "GameObject/Export All Recorded Animation Clips..." ;
88
- const string TimelineClipMenuItemName = "GameObject/Export Selected Timeline Clip..." ;
89
-
90
- const string AnimOnlyMenuItemName = "GameObject/Export Animation Only..." ;
91
-
92
- const string FileBaseName = "Untitled" ;
86
+ const string TimelineClipMenuItemName = "GameObject/Export Selected Timeline Clip..." ;
93
87
94
88
const string ProgressBarTitle = "Fbx Export" ;
95
89
@@ -3401,40 +3395,6 @@ public static bool OnValidateMenuItem ()
3401
3395
return true ;
3402
3396
}
3403
3397
3404
- /// <summary>
3405
- /// Validate the menu item defined by the function ModelOnlyOnContextItem.
3406
- /// </summary>
3407
- [ MenuItem ( ModelOnlyMenuItemName , true , 30 ) ]
3408
- public static bool ModelOnlyOnValidateMenuItem ( )
3409
- {
3410
- return true ;
3411
- }
3412
-
3413
- /// <summary>
3414
- // Validate the menu item defined by the function above.
3415
- /// </summary>
3416
- [ MenuItem ( AnimOnlyMenuItemName , true , 30 ) ]
3417
- public static bool OnValidateAnimOnlyMenuItem ( )
3418
- {
3419
- Object [ ] selection = Selection . objects ;
3420
-
3421
- if ( selection == null || selection . Length == 0 )
3422
- {
3423
- return false ;
3424
- }
3425
-
3426
- foreach ( Object obj in selection )
3427
- {
3428
- GameObject gameObj = obj as GameObject ;
3429
- if ( gameObj != null && ( gameObj . GetComponent < Animation > ( ) != null || gameObj . GetComponent < Animator > ( ) != null ) )
3430
- {
3431
- return true ;
3432
- }
3433
- }
3434
-
3435
- return false ;
3436
- }
3437
-
3438
3398
public static void DisplayNoSelectionDialog ( )
3439
3399
{
3440
3400
UnityEditor . EditorUtility . DisplayDialog (
@@ -3885,18 +3845,7 @@ private static string MakeFileName (string basename = "test", string extension =
3885
3845
{
3886
3846
return basename + "." + extension ;
3887
3847
}
3888
-
3889
-
3890
- private static string GetExportFilePath ( string filenameSuggestion = "" ) {
3891
- var directory = string . IsNullOrEmpty ( LastFilePath )
3892
- ? Application . dataPath
3893
- : System . IO . Path . GetDirectoryName ( LastFilePath ) ;
3894
-
3895
- var title = string . Format ( "Export To FBX ({0})" , FileBaseName ) ;
3896
-
3897
- return EditorUtility . SaveFilePanel ( title , directory , filenameSuggestion , kFBXFileExtension ) ;
3898
- }
3899
-
3848
+
3900
3849
private static void OnExport ( )
3901
3850
{
3902
3851
GameObject [ ] selectedGOs = Selection . GetFiltered < GameObject > ( SelectionMode . TopLevel ) ;
0 commit comments