Method TryMoveToTrack
TryMoveToTrack(TimelineClip, TrackAsset)
Tries to move a TimelineClip to a different track. Validates that the destination track can accept the clip before performing the move. Fails if the clip's PlayableAsset is null, the current and destination tracks are the same or the destination track cannot accept the clip.
선언
public static bool TryMoveToTrack(this TimelineClip clip, TrackAsset destinationTrack)
파라미터
타입 | 이름 | 설명 |
---|---|---|
TimelineClip | clip | Clip that is being moved |
TrackAsset | destinationTrack | Desired destination track |
반환
타입 | 설명 |
---|---|
bool | Returns true if the clip was successfully moved to the destination track, false otherwise. Also returns false if either argument is null |
예외
타입 | 조건 |
---|---|
ArgumentNullException | Thrown if |