2023-05-28 11:44:55 +02:00

23 lines
552 B
C#

using System;
using UnityEngine;
using UnityEngine.Playables;
using UnityEngine.Timeline;
[Serializable]
public class RPGTalkCinematicClip : PlayableAsset, ITimelineClipAsset
{
public RPGTalkCinematicBehaviour template = new RPGTalkCinematicBehaviour ();
public ClipCaps clipCaps
{
get { return ClipCaps.None; }
}
public override Playable CreatePlayable (PlayableGraph graph, GameObject owner)
{
var playable = ScriptPlayable<RPGTalkCinematicBehaviour>.Create (graph, template);
return playable;
}
}