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 |
|
GetMarkersInRange<T>(TrackAsset, ActiveRange)
Returns all markers on a track that occur within the given range
Declaration
public static IEnumerable<T> GetMarkersInRange<T>(this TrackAsset asset, ActiveRange range)
where T : IMarker
Parameters
| Type |
Name |
Description |
| TrackAsset |
asset |
|
| ActiveRange |
range |
|
Returns
Type Parameters
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.
|