Exemplo n.º 1
0
        private void OnTimeChanged(AtomAnimationEditContext.TimeChangedEventArgs time)
        {
            if (base.containingAtom == null)
            {
                return;                              // Plugin destroyed
            }
            try
            {
                // Update UI
                scrubberJSON.valNoCallback = time.currentClipTime;
                timeJSON.valNoCallback     = time.time;

                peers.SendTime(animationEditContext.current);
                BroadcastToControllers(nameof(IRemoteControllerPlugin.OnTimelineTimeChanged));
            }
            catch (Exception exc)
            {
                SuperController.LogError($"Timeline.{nameof(AtomPlugin)}.{nameof(OnTimeChanged)}: {exc}");
            }
        }
Exemplo n.º 2
0
 private void OnTimeChanged(AtomAnimationEditContext.TimeChangedEventArgs args)
 {
     SetTime(args.currentClipTime, true);
 }
Exemplo n.º 3
0
 private void OnTimeChanged(AtomAnimationEditContext.TimeChangedEventArgs args)
 {
     _playAll.button.interactable  = !_animationEditContext.current.playbackEnabled;
     _playClip.button.interactable = !_animationEditContext.current.playbackEnabled;
 }
Exemplo n.º 4
0
 private void OnTimeChanged(AtomAnimationEditContext.TimeChangedEventArgs args)
 {
     RefreshCurrentCurveType(args.currentClipTime);
 }