void UnsubFromClip() { SelectionContainer.Clear(); if (TaggedClip != null) { TaggedClip.DataChanged -= AdjustTagBackgrounds; TaggedClip.MarkerAdded -= ShowMarkerTrack; } }
public void ContainerIsClearTest() { var container = new SelectionContainer(); var elements = new int[] { 1, 2, 3, 4 }; var id = container.Register(elements); container.Clear(); Assert.AreEqual(0, container.Count); }
public void Select(ITimelineElement selection, bool multi) { if (!multi) { ClearSelection(); SelectionContainer.Clear(); } SelectionContainer.Select(selection, TaggedClip); Selection.activeObject = SelectionContainer; }
public void ClearSelection() { SelectionContainer.Clear(); }