public bool Preview(float time) { if (m_TaggedClip == null) { return(false); } if (time >= 0 && time <= m_TaggedClip.DurationInSeconds) { return(false); } if (time < 0) { if (m_PreBoundaryPreview != null) { m_PreBoundaryPreview.PreviewTime(m_PreBoundaryClipElement.Selection, time + m_PreBoundaryClipElement.Selection.DurationInSeconds); } } else if (time > m_TaggedClip.DurationInSeconds) { if (m_PostBoundaryPreview != null) { m_PostBoundaryPreview.PreviewTime(m_PostBoundaryClipElement.Selection, time - m_TaggedClip.DurationInSeconds); } } return(true); }
internal void PreviewActiveTime() { if (CanPreview()) { PreviewEnabled = true; m_BoundaryClipTrack.ValidateBoundaryPreviews(); m_Preview?.DisableDisplayTrajectory(); if (!m_BoundaryClipTrack.Preview(ActiveTime)) { m_Preview?.PreviewTime(TaggedClip, ActiveTime); } } }