Class TimelinePlayable | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class TimelinePlayable

    The root Playable generated by timeline.

    Inheritance
    System.Object
    TimelinePlayable
    Namespace: UnityEngine.Timeline
    Syntax
    public class TimelinePlayable : PlayableBehaviour

    Methods

    Compile(PlayableGraph, Playable, IEnumerable<TrackAsset>, GameObject, Boolean, Boolean)

    Compiles the subgraph of this timeline

    Declaration
    public void Compile(PlayableGraph graph, Playable timelinePlayable, IEnumerable<TrackAsset> tracks, GameObject go, bool autoRebalance, bool createOutputs)
    Parameters
    Type Name Description
    PlayableGraph graph

    The playable graph to inject the timeline.

    Playable timelinePlayable
    System.Collections.Generic.IEnumerable<TrackAsset> tracks

    The list of tracks to compile

    GameObject go

    The GameObject that initiated the compilation

    System.Boolean autoRebalance

    In the editor, whether the graph should account for the possibility of changing clip times

    System.Boolean createOutputs

    Whether to create PlayableOutputs in the graph

    Create(PlayableGraph, IEnumerable<TrackAsset>, GameObject, Boolean, Boolean)

    Creates an instance of a Timeline

    Declaration
    public static ScriptPlayable<TimelinePlayable> Create(PlayableGraph graph, IEnumerable<TrackAsset> tracks, GameObject go, bool autoRebalance, bool createOutputs)
    Parameters
    Type Name Description
    PlayableGraph graph

    The playable graph to inject the timeline.

    System.Collections.Generic.IEnumerable<TrackAsset> tracks

    The list of tracks to compile

    GameObject go

    The GameObject that initiated the compilation

    System.Boolean autoRebalance

    In the editor, whether the graph should account for the possibility of changing clip times

    System.Boolean createOutputs

    Whether to create PlayableOutputs in the graph

    Returns
    Type Description
    ScriptPlayable<TimelinePlayable>

    A subgraph with the playable containing a TimelinePlayable behaviour as the root

    PrepareFrame(Playable, FrameData)

    Overridden to handle synchronizing time on the timeline instance.

    Declaration
    public override void PrepareFrame(Playable playable, FrameData info)
    Parameters
    Type Name Description
    Playable playable

    The Playable that owns the current PlayableBehaviour.

    FrameData info

    A FrameData structure that contains information about the current frame context.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023