static partial void DrawTimelineEventPlayer(EventPlayer ep, ref string texProperty, ref string texEPType)
        {
            TimelineEventPlayer tlEP = ep as TimelineEventPlayer;

            if (tlEP)
            {
                sbTL.Length = 0;
                texEPType  += "TL";
                sbTL.Append((tlEP.playableInfo.time * 100).ToString("00:00") + "/" + (tlEP.playableInfo.duration * 100).ToString("00:00"));
                AddSplit(ref texProperty, sbTL.ToString());
            }
        }
Пример #2
0
        public override void ProcessFrame(Playable playable, FrameData info, object playerData)
        {
            if (eventPlayer && eventPlayer is TimelineEventPlayer)
            {
                TimelineEventPlayer timelineEventPlayer = eventPlayer as TimelineEventPlayer;
                if (timelineEventPlayer)
                {
                    //Set Data
                    PlayableInfo playableInfo = timelineEventPlayer.playableInfo;
                    playableInfo.time     = playable.GetTime();
                    playableInfo.duration = playable.GetDuration();

                    timelineEventPlayer.onProcessFrame.Invoke(playableInfo.percent);

#if UNITY_EDITOR
                    EventPlayer.RefreshEditor();
#endif
                }
            }
        }