Class AudioTrack
A Timeline track that can play AudioClips.
Inherited Members
Namespace: UnityEngine .Timeline
Assembly: Unity.Timeline.dll
Syntax
[Serializable]
[TrackClipType(typeof(AudioPlayableAsset), false)]
[TrackBindingType(typeof(AudioSource))]
[ExcludeFromPreset]
public class AudioTrack : TrackAsset, IPlayableAsset, IPropertyPreview, ISerializationCallbackReceiver
Properties
outputs
Returns a description of the PlayableOutputs that will be created by this track.
Declaration
public override IEnumerable<PlayableBinding> outputs { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Playable |
Overrides
Methods
CreateClip(AudioClip)
Create an TimelineClip for playing an AudioClip on this track.
Declaration
public TimelineClip CreateClip(AudioClip clip)
Parameters
Type | Name | Description |
---|---|---|
Audio |
clip | The audio clip to play |
Returns
Type | Description |
---|---|
Timeline |
A TimelineClip with an AudioPlayableAsset asset. |