Class TrackAssetExtensions | DOTS Timeline | 0.4.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Class TrackAssetExtensions

    Extension methods for TrackAssets

    Inheritance
    Object
    TrackAssetExtensions
    Namespace: Unity.Timeline.Hybrid
    Syntax
    public static class TrackAssetExtensions

    Methods

    GetActiveClipsFromAllLayers(TrackAsset)

    Get clips from all layers of a track, excluding any on muted tracks

    Declaration
    public static IEnumerable<TimelineClip> GetActiveClipsFromAllLayers(this TrackAsset asset)
    Parameters
    Type Name Description
    TrackAsset asset
    Returns
    Type Description
    IEnumerable<TimelineClip>

    GetClipsFromAllLayers(TrackAsset)

    Get clips from all layers of a track, even if muted

    Declaration
    public static IEnumerable<TimelineClip> GetClipsFromAllLayers(this TrackAsset asset)
    Parameters
    Type Name Description
    TrackAsset asset
    Returns
    Type Description
    IEnumerable<TimelineClip>

    GetLayerIndex(TrackAsset)

    Returns the layer index of this in it's parent track

    Declaration
    public static int GetLayerIndex(this TrackAsset asset)
    Parameters
    Type Name Description
    TrackAsset asset
    Returns
    Type Description
    Int32

    GetMainTrack(TrackAsset)

    Returns the main track. If this track is a subtrack, will return it's parent

    Declaration
    public static TrackAsset GetMainTrack(this TrackAsset asset)
    Parameters
    Type Name Description
    TrackAsset asset
    Returns
    Type Description
    TrackAsset

    GetTrackOutputIndex(TrackAsset)

    Gets the index of the track in the timeline

    Declaration
    public static int GetTrackOutputIndex(this TrackAsset asset)
    Parameters
    Type Name Description
    TrackAsset asset
    Returns
    Type Description
    Int32

    The index of the track in the list of output tracks, or -1 if the track is a type not attached to an output track, such as a group track.

    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