Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

TimelineEditorWindow.cs 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using UnityEngine.Playables;
  2. using UnityEngine.Timeline;
  3. namespace UnityEditor.Timeline
  4. {
  5. /// <summary>
  6. /// Base class of the TimelineWindow.
  7. /// </summary>
  8. public abstract class TimelineEditorWindow : EditorWindow
  9. {
  10. /// <summary>
  11. /// Interface used to navigate between Timelines and SubTimelines. (RO)
  12. /// </summary>
  13. public abstract TimelineNavigator navigator { get; }
  14. /// <summary>
  15. /// Allows retrieving and and setting the Timeline Window lock state. When the lock is off, the window focus follows the Unity selection.
  16. /// </summary>
  17. /// <remarks>When lock transitions from true to false, the focused timeline will be synchronized with the Unity selection.</remarks>>
  18. public abstract bool locked { get; set; }
  19. /// <summary>
  20. /// Allows setting which TimelineAsset is shown in the TimelineWindow.
  21. /// </summary>
  22. /// <param name="sequence">The asset to show.</param>
  23. /// <remarks>Calling this method will put the window in asset edit mode and certain features might be missing (eg: timeline cannot be evaluated, bindings will not be available, etc).
  24. /// Ignores window lock mode. Calling with null, will clear the displayed timeline.</remarks>
  25. public abstract void SetTimeline(TimelineAsset sequence);
  26. /// <summary>
  27. /// Allows setting which TimelineAsset is shown in the TimelineWindow and which PlayableDirector is used to evaluate it.
  28. /// </summary>
  29. /// <param name="director">The PlayableDirector who's timeline should be shown.</param>
  30. /// <remarks>Ignores window lock mode. Calling with null, will clear the displayed timeline.</remarks>
  31. public abstract void SetTimeline(PlayableDirector director);
  32. /// <summary>
  33. /// Allows clearing the TimelineAsset that is shown in the TimelineWindow.
  34. /// </summary>
  35. /// <remarks>Ignores window lock mode.</remarks>>
  36. public abstract void ClearTimeline();
  37. }
  38. }