void InvalidateScrubbingHelper() { if (m_ScrubbingCacheHelper != null) { m_ScrubbingCacheHelper.Release(); m_ScrubbingCacheHelper = null; } }
public void RegisterScrubbingWarning(VisualEffectControlTrackController controller, float requestedTime, float fixedTimeStep) { UnregisterScrubbingWarning(controller); m_ScrubbingWarnings.Add(new MaxScrubbingWarning() { controller = controller, requestedTime = requestedTime, fixedTimeStep = fixedTimeStep }); }
public override void PrepareFrame(Playable playable, FrameData data) { if (m_Target == null) { return; } if (m_ScrubbingCacheHelper == null) { m_ScrubbingCacheHelper = new VisualEffectControlTrackController(); VisualEffectControlTrack parentTrack = null; #if UNITY_EDITOR parentTrack = m_ParentTrack; #endif m_ScrubbingCacheHelper.Init(playable, m_Target, parentTrack); } var globalTime = playable.GetTime(); var deltaTime = data.deltaTime; m_ScrubbingCacheHelper.Update(globalTime, deltaTime); }
public void UnregisterScrubbingWarning(VisualEffectControlTrackController controller) { m_ScrubbingWarnings.RemoveAll(o => o.controller == controller); }
public void UnregisterControlTrack(VisualEffectControlTrackController controller) { UnregisterScrubbingWarning(controller); m_RegisteredControlTrack.RemoveAll(o => o == controller); UpdateConflictingControlTrack(); }
public void RegisterControlTrack(VisualEffectControlTrackController controller) { m_RegisteredControlTrack.Add(controller); UpdateConflictingControlTrack(); }