Class TrackAssetExtensions
Extension methods for TrackAssets
Inheritance
TrackAssetExtensions
Syntax
public static class TrackAssetExtensions
Methods
GetActiveClipsFromAllLayers(TrackAsset)
Get clips from all layers of a track, excluding any on muted tracks
Declaration
public static IEnumerable<TimelineClip> GetActiveClipsFromAllLayers(this TrackAsset asset)
Parameters
Type |
Name |
Description |
TrackAsset |
asset |
|
Returns
GetClipsFromAllLayers(TrackAsset)
Get clips from all layers of a track, even if muted
Declaration
public static IEnumerable<TimelineClip> GetClipsFromAllLayers(this TrackAsset asset)
Parameters
Type |
Name |
Description |
TrackAsset |
asset |
|
Returns
GetLayerIndex(TrackAsset)
Returns the layer index of this in it's parent track
Declaration
public static int GetLayerIndex(this TrackAsset asset)
Parameters
Type |
Name |
Description |
TrackAsset |
asset |
|
Returns
GetMainTrack(TrackAsset)
Returns the main track. If this track is a subtrack, will return it's parent
Declaration
public static TrackAsset GetMainTrack(this TrackAsset asset)
Parameters
Type |
Name |
Description |
TrackAsset |
asset |
|
Returns
Type |
Description |
TrackAsset |
|
GetTrackOutputIndex(TrackAsset)
Gets the index of the track in the timeline
Declaration
public static int GetTrackOutputIndex(this TrackAsset asset)
Parameters
Type |
Name |
Description |
TrackAsset |
asset |
|
Returns
Type |
Description |
Int32 |
The index of the track in the list of output tracks, or -1 if the track is a type not attached to an output track, such as a group track.
|