Play & Wait (LogiX node)
Play & Wait | ||
---|---|---|
Inputs | ||
Impulse | Play | |
Outputs | ||
IPlayable | Target | |
Impulse | OnStarted | |
Impulse | OnFinishedPlaying |
The Play & Wait node (re)starts playback of the Target
from the beginning for all users when an impulse is received at Play
. This is similar to Play (LogiX node), however the impulse outputs are different.
Usage
The OnStarted
output fires an impulse after an impulse is received at Play
and the playback of the Target
(re)starts. Note that this output will not fire if there is no valid Target
referenced.
The OnFinishedPlaying
output fires an impulse for all users when playback of the Target
stops after it was (re)started by this node. Both pauses and full playback stops will cause this output to fire. If the Target
is looped, this output will not fire an impulse if playback reaches the end and loops back from the start, however an impulse will still be fired when playback eventually finishes. The playback speed of the Target
becoming 0 does not cause this output to fire. Note that this output will not fire if playback of the Target
is started by another node unless playback was initially started by Play & Wait and playback was merely restarted by another source before finally finishing.
Components which can be referenced as an IPlayable include Animator, AudioClipPlayer, and VideoTextureProvider.