public IEnumerator CreateClip() { PlayableDirector director = CreateDirectorWithTimelineAsset(TIMELINE_ASSET_PATH, out TimelineAsset timelineAsset); yield return(YieldEditorUtility.WaitForFramesAndIncrementUndo(1)); TimelineClip clip = TimelineEditorUtility.CreateTrackAndClip <DummyTimelineTrack, DummyTimelinePlayableAsset>( timelineAsset, "FirstTrack"); VerifyClip(clip); TimelineEditorUtility.SelectDirectorInTimelineWindow(director); //trigger the TimelineWindow's update etc. yield return(YieldEditorUtility.WaitForFramesAndIncrementUndo(3)); DummyTimelineClipData clipData = clip.GetClipData <DummyTimelineClipData>(); Assert.IsNotNull(clipData); TimelineEditorUtility.DestroyAssets(clip); //Cleanup }