26 lines
617 B
C#
26 lines
617 B
C#
#if TEXT_TRACK_REQUIRES_TEXTMESH_PRO
|
|
|
|
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.Playables;
|
|
|
|
namespace Timeline.Samples
|
|
{
|
|
// Runtime representation of a TextClip.
|
|
// The Serializable attribute is required to be animated by timeline, and used as a template.
|
|
[Serializable]
|
|
public class TextPlayableBehaviour : PlayableBehaviour
|
|
{
|
|
[Tooltip("The color of the text")]
|
|
public Color color = Color.white;
|
|
|
|
[Tooltip("The size of the font to use")]
|
|
public int fontSize = 14;
|
|
|
|
[Tooltip("The text to display")]
|
|
public string text = "";
|
|
}
|
|
}
|
|
|
|
#endif
|