SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
576 B

4 years ago
  1. using UnityEngine;
  2. using UnityEditor;
  3. using UnityEngine.Timeline;
  4. using UnityEngine.Playables;
  5. namespace UnityEditor.Timeline
  6. {
  7. static class TrackModifier
  8. {
  9. public static bool DeleteTrack(TimelineAsset timeline, TrackAsset track)
  10. {
  11. if (TimelineEditor.inspectedDirector != null)
  12. {
  13. TimelineUndo.PushUndo(TimelineEditor.inspectedDirector, "Delete Track");
  14. TimelineEditor.inspectedDirector.ClearGenericBinding(track);
  15. }
  16. return timeline.DeleteTrack(track);
  17. }
  18. }
  19. }