123456789101112131415161718192021222324252627282930313233 |
- #if TEXT_TRACK_REQUIRES_TEXTMESH_PRO
- using System;
- using UnityEngine;
- using UnityEngine.Playables;
- using UnityEngine.Timeline;
- namespace Timeline.Samples
- {
-
- [Serializable]
- public class TextPlayableAsset : PlayableAsset, ITimelineClipAsset
- {
- [NoFoldOut]
- [NotKeyable]
- public TextPlayableBehaviour template = new TextPlayableBehaviour();
-
- public ClipCaps clipCaps
- {
- get { return ClipCaps.Blending; }
- }
-
- public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
- {
-
- return ScriptPlayable<TextPlayableBehaviour>.Create(graph, template);
- }
- }
- }
- #endif
|