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