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