1
0
Fork 0
LaboratoryProtection/Assets/OtherPackage/DefaultPlayables/TextSwitcher/TextSwitcherClip.cs

21 lines
542 B
C#
Raw Normal View History

2023-09-12 15:55:51 +08:00
using System;
using UnityEngine;
using UnityEngine.Playables;
using UnityEngine.Timeline;
[Serializable]
public class TextSwitcherClip : PlayableAsset, ITimelineClipAsset
{
public TextSwitcherBehaviour template = new TextSwitcherBehaviour ();
public ClipCaps clipCaps
{
get { return ClipCaps.Blending; }
}
public override Playable CreatePlayable (PlayableGraph graph, GameObject owner)
{
var playable = ScriptPlayable<TextSwitcherBehaviour>.Create (graph, template);
return playable; }
}