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

    Class TrackAssetExtensions

    Extension methods for TrackAssets

    Inheritance
    System.Object
    TrackAssetExtensions
    Namespace: UnityEngine.Timeline
    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.

    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