暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TextPlayableBehaviour.cs 617B

12345678910111213141516171819202122232425
  1. #if TEXT_TRACK_REQUIRES_TEXTMESH_PRO
  2. using System;
  3. using UnityEngine;
  4. using UnityEngine.Playables;
  5. namespace Timeline.Samples
  6. {
  7. // Runtime representation of a TextClip.
  8. // The Serializable attribute is required to be animated by timeline, and used as a template.
  9. [Serializable]
  10. public class TextPlayableBehaviour : PlayableBehaviour
  11. {
  12. [Tooltip("The color of the text")]
  13. public Color color = Color.white;
  14. [Tooltip("The size of the font to use")]
  15. public int fontSize = 14;
  16. [Tooltip("The text to display")]
  17. public string text = "";
  18. }
  19. }
  20. #endif