Пример #1
0
        public ITimelineItem CloneTo(TrackAsset parent, double time)
        {
            var item = new MarkerItem(MarkerModifier.CloneMarkerToParent(m_Marker, parent));

            item.start = time;
            return(item);
        }
Пример #2
0
        public static ITimelineItem ToItem(this IMarker marker)
        {
            if (s_MarkerCache.ContainsKey(marker))
            {
                return(s_MarkerCache[marker]);
            }

            var ret = new MarkerItem(marker);

            s_MarkerCache.Add(marker, ret);
            return(ret);
        }
Пример #3
0
        static MarkerItem CopyItem(MarkerItem markerItem)
        {
            var markerObject = markerItem.marker as Object;

            if (markerObject != null)
            {
                var newMarker = Object.Instantiate(markerObject);
                newMarker.name = markerObject.name;
                return(new MarkerItem((IMarker)newMarker));
            }

            return(null);
        }
Пример #4
0
 protected bool Equals(MarkerItem otherMarker)
 {
     return(Equals(m_Marker, otherMarker.m_Marker));
 }