docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AudioPlayableAsset

    PlayableAsset wrapper for an AudioClip in Timeline.

    Inheritance
    object
    Object
    ScriptableObject
    PlayableAsset
    AudioPlayableAsset
    Implements
    IPlayableAsset
    ITimelineClipAsset
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Timeline
    Assembly: Unity.Timeline.dll
    Syntax
    [Serializable]
    public class AudioPlayableAsset : PlayableAsset, IPlayableAsset, ITimelineClipAsset

    Properties

    clip

    The audio clip to be played

    Declaration
    public AudioClip clip { get; set; }
    Property Value
    Type Description
    AudioClip

    clipCaps

    Returns the capabilities of TimelineClips that contain an AudioPlayableAsset

    Declaration
    public ClipCaps clipCaps { get; }
    Property Value
    Type Description
    ClipCaps

    duration

    Returns the duration required to play the audio clip exactly once

    Declaration
    public override double duration { get; }
    Property Value
    Type Description
    double
    Overrides
    PlayableAsset.duration

    loop

    Whether the audio clip loops.

    Declaration
    public bool loop { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    Use this to loop the audio clip when the duration of the timeline clip exceeds that of the audio clip.

    outputs

    Returns a description of the PlayableOutputs that may be created for this asset.

    Declaration
    public override IEnumerable<PlayableBinding> outputs { get; }
    Property Value
    Type Description
    IEnumerable<PlayableBinding>
    Overrides
    PlayableAsset.outputs

    Methods

    CreatePlayable(PlayableGraph, GameObject)

    Creates the root of a Playable subgraph to play the audio clip.

    Declaration
    public override Playable CreatePlayable(PlayableGraph graph, GameObject go)
    Parameters
    Type Name Description
    PlayableGraph graph

    PlayableGraph that will own the playable

    GameObject go

    The GameObject that triggered the graph build

    Returns
    Type Description
    Playable

    The root playable of the subgraph

    Overrides
    PlayableAsset.CreatePlayable(PlayableGraph, GameObject)

    Implements

    IPlayableAsset
    ITimelineClipAsset
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)