docs.unity.cn
    Show / Hide Table of Contents

    Class TrackAssetExtensions

    Extension methods for TrackAssets

    Inheritance
    Object
    TrackAssetExtensions
    Namespace: UnityEngine.Timeline
    Syntax
    public static class TrackAssetExtensions : object

    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 © 2020 Unity Technologies
    Generated by DocFX
    on Tuesday, May 4, 2021