Example #1
0
        public virtual void GatherProperties(PlayableDirector director, IPropertyCollector driver)
        {
            GameObject gameObjectBinding = this.GetGameObjectBinding(director);

            if (gameObjectBinding != null)
            {
                driver.PushActiveGameObject(gameObjectBinding);
            }
            if (this.animClip != null)
            {
                driver.AddFromClip(this.animClip);
            }
            foreach (TimelineClip timelineClip in this.clips)
            {
                if (timelineClip.curves != null && timelineClip.asset != null)
                {
                    driver.AddObjectProperties(timelineClip.asset, timelineClip.curves);
                }
                IPropertyPreview propertyPreview = timelineClip.asset as IPropertyPreview;
                if (propertyPreview != null)
                {
                    propertyPreview.GatherProperties(director, driver);
                }
            }
            foreach (TrackAsset trackAsset in this.GetChildTracks())
            {
                if (trackAsset != null)
                {
                    trackAsset.GatherProperties(director, driver);
                }
            }
            if (gameObjectBinding != null)
            {
                driver.PopActiveGameObject();
            }
        }
Example #2
0
 /// <inheritdoc/>
 public void GatherProperties(PlayableDirector director, IPropertyCollector driver)
 {
     driver.AddFromClip(m_Clip);
 }