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