Tanoda
EventTrack.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.Collections;
10using System.Collections.Generic;
11using UnityEngine;
12using UnityEngine.Playables;
13using UnityEngine.Timeline;
14
15namespace Leap.Unity.Recording {
16
17 [TrackColor(0.8F, 0.1F, 0.8F)]
18 [TrackClipType(typeof(EventClip))]
19 public class EventTrack : TrackAsset {
20
21 public override Playable CreateTrackMixer(PlayableGraph graph, GameObject go, int inputCount) {
22 var eventMixerPlayable = ScriptPlayable<EventPlayableMixerBehaviour>.Create(graph, inputCount);
23
24 eventMixerPlayable.GetBehaviour().eventTrack = this;
25
26 return eventMixerPlayable;
27 }
28
29 }
30
31}
override Playable CreateTrackMixer(PlayableGraph graph, GameObject go, int inputCount)
Definition: EventTrack.cs:21