Tanoda
RecordingClip.cs
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) Ultraleap, Inc. 2011-2020. *
3 * *
4 * Use subject to the terms of the Apache License 2.0 available at *
5 * http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
6 * between Ultraleap and you, your company or other organization. *
7 ******************************************************************************/
8
9using System;
10using UnityEngine;
11using UnityEngine.Playables;
12using UnityEngine.Timeline;
13
14namespace Leap.Unity.Recording {
15
16 [Serializable]
17 public class RecordingClip : PlayableAsset, ITimelineClipAsset {
18
20
21 public ClipCaps clipCaps {
22 get {
23 return ClipCaps.Extrapolation | ClipCaps.ClipIn | ClipCaps.SpeedMultiplier;
24 }
25 }
26
27 public override Playable CreatePlayable(PlayableGraph graph, GameObject owner) {
28 var playable = ScriptPlayable<RecordingBehaviour>.Create(graph);
29 playable.GetBehaviour().recording = recording;
30 return playable;
31 }
32 }
33}
override Playable CreatePlayable(PlayableGraph graph, GameObject owner)