docs.unity.cn
    Show / Hide Table of Contents

    Class TrackAssetExtensions

    Extension methods for TrackAssets

    Inheritance
    Object
    TrackAssetExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    Generated by DocFX
    on Thursday, April 27, 2023