public static void OnTrackChanged_Safe(this TrackEditor editor, TrackAsset track) { try { editor.OnTrackChanged(track); } catch (Exception e) { Debug.LogException(e); } }
void DetectTrackChanged() { if (Event.current.type == EventType.Layout) { // incremented when a track or it's clips changed if (m_LastDirtyIndex != track.DirtyIndex) { try { m_TrackEditor.OnTrackChanged(track); } catch (Exception e) { Debug.LogException(e); } m_LastDirtyIndex = track.DirtyIndex; } OnTrackChanged(); } }