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, ISerializationCallbackReceiver, IPropertyPreview
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<PlayableBinding> |
Overrides
Methods
CreateClip(AudioClip)
Create an TimelineClip for playing an AudioClip on this track.
Declaration
public TimelineClip CreateClip(AudioClip clip)
Parameters
Type | Name | Description |
---|---|---|
AudioClip | clip | The audio clip to play |
Returns
Type | Description |
---|---|
TimelineClip | A TimelineClip with an AudioPlayableAsset asset. |