public override void Execute() { if (UpdateManager.IsPluginResetting()) { return; } if (m_MovieProxyPlayableAssetToColorArray == null) { Reinitialize(); } Util.Log("EditorPeriodicJob::Executing"); UpdateManager.GetStreamingAssetPath(); // must be executed in main thread. PlayableDirector currentDirector = UpdateManager.GetCurrentDirector(); if (currentDirector == null) { PluginUtil.HideAllOverwrapWindows(); return; } //ShowOverwrapWindows(); List <TrackAsset> trackList = UpdateManager.GetTrackList(currentDirector); if (trackList == null) { return; } ProcessTracks(trackList); ShowOverwrapWindows(); }
static public EditorWindow GetTimelineWindow() { EditorWindow timelineWindow = null; var sequenceWindowArray = Resources.FindObjectsOfTypeAll <EditorWindow>(); if (sequenceWindowArray == null) { PluginUtil.HideAllOverwrapWindows(); return(null); } foreach (var w in sequenceWindowArray) { if (w.GetType().ToString() == "UnityEditor.Timeline.TimelineWindow") { timelineWindow = w; break; } } if (timelineWindow == null) { PluginUtil.HideAllOverwrapWindows(); } return(timelineWindow); }