Maze / Library /PackageCache /com.unity.timeline@1.6.5 /Runtime /Activation /ActivationPlayableAsset.cs
| using System.ComponentModel; | |
| using UnityEngine.Playables; | |
| namespace UnityEngine.Timeline | |
| { | |
| /// <summary> | |
| /// Playable Asset class for Activation Tracks | |
| /// </summary> | |
| [] | |
| class ActivationPlayableAsset : PlayableAsset, ITimelineClipAsset | |
| { | |
| /// <summary> | |
| /// Returns a description of the features supported by activation clips | |
| /// </summary> | |
| public ClipCaps clipCaps { get { return ClipCaps.None; } } | |
| /// <summary> | |
| /// Overrides PlayableAsset.CreatePlayable() to inject needed Playables for an activation asset | |
| /// </summary> | |
| public override Playable CreatePlayable(PlayableGraph graph, GameObject go) | |
| { | |
| return Playable.Create(graph); | |
| } | |
| } | |
| } | |