docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TimelineSequence

    A TimelineSequence is a Sequence object associated with a TimelineAsset. This is the main object used in the MasterSequence asset to define an editorial hierarchy of sequences.

    Inheritance
    object
    Sequence
    TimelineSequence
    Inherited Members
    Sequence.m_Name
    Sequence.m_Fps
    Sequence.m_Start
    Sequence.m_Duration
    Sequence.sequenceRenamed
    Sequence.isFpsInherited
    Sequence.end
    Sequence.Move(double)
    Sequence.SetDuration(double)
    Sequence.parent
    Sequence.hasChildren
    Sequence.children
    Sequence.AddChild(Sequence)
    Sequence.RemoveChild(Sequence)
    Sequence.ParentClip(Sequence)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Sequences
    Assembly: Unity.Sequences.dll
    Syntax
    [Serializable]
    [MovedFrom(false, "UnityEngine.CinematicToolbox", "Unity.CinematicToolbox", "TimelineCinematicClip")]
    public class TimelineSequence : Sequence

    Properties

    childrenTrack

    Get the Sequence EditorialTrack that contains children clips. It can be null.

    Declaration
    public EditorialTrack childrenTrack { get; }
    Property Value
    Type Description
    EditorialTrack

    childrenTrackName

    Get or set the Sequence children track name. e.g.: Common name for children tracks are "Sequences" or "Shots".

    Declaration
    public string childrenTrackName { get; set; }
    Property Value
    Type Description
    string

    duration

    Get or set the TimelineSequence duration. The duration is based on its editorialClip.duration value when editorialClip exists.

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

    editorialClip

    Gets the Sequence editorial TimelineClip. This is the clip that belongs to the parent childrenTrack and point to the timeline of this Sequence.

    Declaration
    public TimelineClip editorialClip { get; }
    Property Value
    Type Description
    TimelineClip

    fps

    Indicates the framerate of the Sequence. The framerate is retrieved from the Timeline asset when possible.

    Declaration
    public override float fps { get; set; }
    Property Value
    Type Description
    float
    Overrides
    Sequence.fps

    name

    Get or set the name of the masterSequence clip.

    Declaration
    public override string name { set; }
    Property Value
    Type Description
    string
    Overrides
    Sequence.name
    Remarks

    When setting a new name, sequenceRenamed event is triggered.

    start

    Get or set the TimelineSequence start time. The start time is based on its editorialClip.start value when editorialClip exists.

    Declaration
    public override double start { get; set; }
    Property Value
    Type Description
    double
    Overrides
    Sequence.start

    timeline

    Gets the Sequence timeline.

    Declaration
    public TimelineAsset timeline { get; }
    Property Value
    Type Description
    TimelineAsset

    Methods

    AddChildClip(Sequence)

    Adds the specified Sequence as a child of this Sequence and creates the childrenTrack if it doesn't already exist. The editorialClip of the added clip is also created in the childrenTrack. If the given clip is not a TimelineSequence, no track or clip are created.

    This function is used by AddChild(Sequence) and the parent setter.

    Declaration
    protected override double AddChildClip(Sequence childClip)
    Parameters
    Type Name Description
    Sequence childClip

    The child Sequence to add.

    Returns
    Type Description
    double

    The actual start time of the added clip.

    Overrides
    Sequence.AddChildClip(Sequence)

    GetRelatedScenes()

    Gets all the scenes needed to have the scene context for this clip complete. This includes all upstream, downstream scenes and the scenes of the clip itself.

    Declaration
    public IReadOnlyCollection<string> GetRelatedScenes()
    Returns
    Type Description
    IReadOnlyCollection<string>

    A collection of Scene paths.

    Remarks

    The returned paths are ordered from upstream to downstream.

    RemoveChildClip(Sequence)

    On top of removing the given Sequence from children, its editorialClip is removed from the childrenTrack. If the childrenTrack end up empty, it is removed as well. If the given clip is not a TimelineSequence, no track or clip are deleted. RemoveChild(Sequence) parent

    Declaration
    protected override void RemoveChildClip(Sequence childClip)
    Parameters
    Type Name Description
    Sequence childClip

    The child Sequence to remove.

    Overrides
    Sequence.RemoveChildClip(Sequence)

    UnParentClip()

    Unset the parent only. RemoveChild(Sequence)parent

    Declaration
    protected override void UnParentClip()
    Overrides
    Sequence.UnParentClip()
    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)