#if UNITY_EDITOR using System.ComponentModel; #endif using UnityEngine.Playables; using UnityEngine.Timeline; namespace UnityEngine.Sequences.Timeline { /// /// A Playable Asset used by the . /// [System.Serializable] #if UNITY_EDITOR [DisplayName("Activation clip")] #endif public class SceneActivationPlayableAsset : PlayableAsset, ITimelineClipAsset { /// [doc-replica] com.unity.timeline /// /// Returns the capabilities of TimelineClips that contain an SceneActivationPlayableAsset. /// public ClipCaps clipCaps => ClipCaps.None; /// [doc-replica] com.unity.timeline /// /// Creates the root of a Playable subgraph to play the scene activation clip. /// /// PlayableGraph that will own the playable. /// The gameobject that triggered the graph build. /// public override Playable CreatePlayable(PlayableGraph graph, GameObject owner) { return Playable.Create(graph); } } }