docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TrackAssetExtensions

    Extension methods for TrackAssets

    Inheritance
    object
    TrackAssetExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Timeline
    Assembly: Unity.Timeline.dll
    Syntax
    public static class TrackAssetExtensions

    Methods

    GetGroup(TrackAsset)

    Gets the GroupTrack this track belongs to.

    Declaration
    public static GroupTrack GetGroup(this TrackAsset asset)
    Parameters
    Type Name Description
    TrackAsset asset

    The track asset to find the group of

    Returns
    Type Description
    GroupTrack

    The parent GroupTrack or null if the Track is an override track, or root track.

    SetGroup(TrackAsset, GroupTrack)

    Assigns the track to the specified group track.

    Declaration
    public static void SetGroup(this TrackAsset asset, GroupTrack group)
    Parameters
    Type Name Description
    TrackAsset asset

    The track to assign.

    GroupTrack group

    The GroupTrack to assign the track to.

    Remarks

    Does not support assigning to a group in a different timeline.

    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)