Play & Wait (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
Play & Wait
'Play & Wait' LogiX node
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.

Examples

Node Menu

Playback
Back Clip Length Drive Playback Is Looped Is Playing Normalized Position Pause
Pause/Resume Play Play & Wait Playback State Position Resume Set Loop
Set Normalized Position Set Position Set Speed Shift Position Speed Stop Wait