Difference between revisions of "Play & Wait (LogiX node)"
(Update category) |
(Clarifies that the output impulses are global, not local.) |
||
Line 12: | Line 12: | ||
<!--T:2--> | <!--T:2--> | ||
− | The '''Play & Wait''' node (re)starts playback of the <code>Target</code> from the beginning when an impulse is received at <code>Play</code>. This is similar to [[Play (LogiX node)]], however the impulse outputs are different. | + | The '''Play & Wait''' node (re)starts playback of the <code>Target</code> from the beginning for all users when an impulse is received at <code>Play</code>. This is similar to [[Play (LogiX node)]], however the impulse outputs are different. |
== Usage == <!--T:3--> | == Usage == <!--T:3--> | ||
Line 18: | Line 18: | ||
− | The <code>OnFinishedPlaying</code> output fires an impulse when playback of the <code>Target</code> stops after it was (re)started by this node. Both pauses and full playback stops will cause this output to fire. If the <code>Target</code> 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 <code>Target</code> becoming 0 does not cause this output to fire. Note that this output will not fire if playback of the <code>Target</code> is started by another node ''unless'' playback was initially started by Play & Wait and playback was merely restarted by another source before finally finishing. | + | The <code>OnFinishedPlaying</code> output fires an impulse for all users when playback of the <code>Target</code> stops after it was (re)started by this node. Both pauses and full playback stops will cause this output to fire. If the <code>Target</code> 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 <code>Target</code> becoming 0 does not cause this output to fire. Note that this output will not fire if playback of the <code>Target</code> is started by another node ''unless'' playback was initially started by Play & Wait and playback was merely restarted by another source before finally finishing. |
Revision as of 01:23, 4 January 2022
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.