Без опису
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223
  1. using System;
  2. using UnityEngine;
  3. namespace UnityEngine.Timeline
  4. {
  5. /// <summary>
  6. /// A PlayableTrack is a track whose clips are custom playables.
  7. /// </summary>
  8. /// <remarks>
  9. /// This is a track that can contain PlayableAssets that are found in the project and do not have their own specified track type.
  10. /// </remarks>
  11. [Serializable]
  12. [TimelineHelpURL(typeof(PlayableTrack))]
  13. public class PlayableTrack : TrackAsset
  14. {
  15. /// <inheritdoc />
  16. protected override void OnCreateClip(TimelineClip clip)
  17. {
  18. if (clip.asset != null)
  19. clip.displayName = clip.asset.GetType().Name;
  20. }
  21. }
  22. }