Class TrackAssetExtensions
Extension methods for TrackAssets
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.