File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -3054,26 +3054,12 @@ private void ReplaceFile ()
3054
3054
[ MenuItem ( ClipMenuItemName , false , 31 ) ]
3055
3055
static void OnClipContextClick ( MenuCommand command )
3056
3056
{
3057
- /*var obs = Selection.objects;
3058
- foreach (var obj in obs)
3059
- {
3060
- if (obj.GetType().Name.Contains("EditorClip"))
3061
- {
3062
- Debug.Log("clip selected");
3063
- var selClip = obj.GetType().GetProperty("clip").GetValue(obj, null);
3064
- var timeLineClip = selClip as UnityEngine.Timeline.TimelineClip;
3065
- Debug.Log("clip name: " + timeLineClip.displayName);
3066
- }
3067
- }*/
3068
-
3069
3057
// Now that we know we have stuff to export, get the user-desired path.
3070
3058
string directory = string . IsNullOrEmpty ( LastFilePath )
3071
3059
? Application . dataPath
3072
3060
: System . IO . Path . GetDirectoryName ( LastFilePath ) ;
3073
3061
3074
-
3075
- string title = string . Format ( "Export Model FBX ({0})" , FileBaseName ) ;
3076
-
3062
+ string title = "Select the folder in which the animation files from the timeline will be exported" ;
3077
3063
string folderPath = EditorUtility . SaveFolderPanel ( title , directory , "" ) ;
3078
3064
3079
3065
if ( string . IsNullOrEmpty ( folderPath ) )
@@ -3099,7 +3085,6 @@ static void OnClipContextClick(MenuCommand command)
3099
3085
}
3100
3086
}
3101
3087
3102
-
3103
3088
foreach ( GameObject obj in selection )
3104
3089
{
3105
3090
Debug . Log ( obj . GetType ( ) . BaseType . ToString ( ) + ":" + obj . name ) ;
You can’t perform that action at this time.
0 commit comments