Method CreateClip
CreateClip<T>()
Creates a clip on the track with a playable asset attached, whose derived type is specified by T
Declaration
public TimelineClip CreateClip<T>() where T : ScriptableObject, IPlayableAsset
Returns
Type | Description |
---|---|
TimelineClip | Returns a TimelineClip whose asset is of type T |
Type Parameters
Name | Description |
---|---|
T | A PlayableAsset derived type |
Remarks
Throws InvalidOperationException if T
is not supported by the track.
Supported types are determined by TrackClip attributes that decorate the TrackAsset derived class