IPropertyPreview.cs 677 B

1234567891011121314151617
  1. using UnityEngine.Playables;
  2. namespace UnityEngine.Timeline
  3. {
  4. /// <summary>
  5. /// Implement this interface in a PlayableAsset to specify which properties will be modified when Timeline is in preview mode.
  6. /// </summary>
  7. public interface IPropertyPreview
  8. {
  9. /// <summary>
  10. /// Called by the Timeline Editor to gather properties requiring preview.
  11. /// </summary>
  12. /// <param name="director">The PlayableDirector invoking the preview</param>
  13. /// <param name="driver">PropertyCollector used to gather previewable properties</param>
  14. void GatherProperties(PlayableDirector director, IPropertyCollector driver);
  15. }
  16. }