Set Loop (LogiX node)
Set Loop | ||
---|---|---|
Inputs | ||
Impulse | Set | |
Bool | Loop | |
Outputs | ||
IPlayable | Target | |
Impulse | OnDone |
The Set Loop node sets the looped status (whether playback stops or restarts when the end of the clip is reached) of the Target
to the value of the Loop
input.
Usage
The OnDone
output fires an impulse after an impulse is received at Set
and the looped status of the Target
has been set. An impulse is fired regardless of whether the looped status of the Target
was changed by this action. Note that this output will not fire if there is no valid Target
referenced.
The looped status of a Target
can be changed during playback without interrupting it. However, if playback has already looped at least once, using Set Loop with input Loop
as False will stop playback and the playback position is set to the end of the clip.
Components which can be referenced as an IPlayable include Animator, AudioClipPlayer, and VideoTextureProvider.