@@ -3065,42 +3065,6 @@ public static void ExportSingleTimelineClip(TimelineClip timelineClipSelected, G
3065
3065
ExportModelEditorWindow . Init ( exportArray , string . Format ( AnimFbxFormat , animationTrackGObject . name , timelineClipSelected . displayName ) , isTimelineAnim : true ) ;
3066
3066
}
3067
3067
3068
- /// <summary>
3069
- /// Add an option " GameObject/Export All Recorded Animation Clips..." in the contextual GameObject menu.
3070
- /// </summary>
3071
- /// Disabled temporarily
3072
- /*[MenuItem(ClipMenuItemName, false, 31)]
3073
- public static void OnPlayableDirectorGameObjectContextClick(MenuCommand command)
3074
- {
3075
- Object[] selection = null;
3076
-
3077
- if (command == null || command.context == null)
3078
- {
3079
- // We were actually invoked from the top GameObject menu, so use the selection.
3080
- selection = Selection.GetFiltered<Object>(SelectionMode.Editable | SelectionMode.TopLevel);
3081
- }
3082
- else
3083
- {
3084
- // We were invoked from the right-click menu, so use the context of the context menu.
3085
- GameObject selected = command.context as GameObject;
3086
- if (selected)
3087
- {
3088
- selection = new GameObject[] { selected };
3089
- }
3090
- }
3091
-
3092
- var playableDirectors = new List<UnityEngine.Object> ();
3093
- foreach (GameObject objectWithPlayableDirector in selection)
3094
- {
3095
- PlayableDirector pd = objectWithPlayableDirector.GetComponent<PlayableDirector>();
3096
- if (pd == null) {
3097
- continue;
3098
- }
3099
- playableDirectors.Add (objectWithPlayableDirector);
3100
- }
3101
- ExportModelEditorWindow.Init (playableDirectors, "(automatic)", isTimelineAnim:true, isPlayableDirector:true);
3102
- }*/
3103
-
3104
3068
public static void ExportAllTimelineClips ( GameObject objectWithPlayableDirector , string folderPath , IExportOptions exportOptions = null )
3105
3069
{
3106
3070
PlayableDirector pd = objectWithPlayableDirector . GetComponent < PlayableDirector > ( ) ;
@@ -3126,32 +3090,6 @@ public static void ExportAllTimelineClips(GameObject objectWithPlayableDirector,
3126
3090
}
3127
3091
}
3128
3092
}
3129
-
3130
- /// <summary>
3131
- /// Validate the menu item defined by the function OnPlayableDirectorGameObjectContextClick.
3132
- /// </summary>
3133
- /// Disabled temporarily
3134
- /*[MenuItem(ClipMenuItemName, true, 31)]
3135
- public static bool ValidateClipContextClick()
3136
- {
3137
- Object[] selection = Selection.objects;
3138
-
3139
- if (selection == null || selection.Length == 0)
3140
- {
3141
- return false;
3142
- }
3143
-
3144
- foreach (Object obj in selection)
3145
- {
3146
- GameObject gameObj = obj as GameObject;
3147
- if (gameObj != null && gameObj.GetComponent<PlayableDirector>() != null)
3148
- {
3149
- return true;
3150
- }
3151
- }
3152
-
3153
- return false;
3154
- }*/
3155
3093
3156
3094
/// <summary>
3157
3095
/// Add a menu item "Export Model..." to a GameObject's context menu.
0 commit comments