Added flux node and rudimentary explanations. |
Tag: Undo |
||
Line 1: | Line 1: | ||
{{#Invoke:ProtoFlux|GenerateUI | {{#Invoke:ProtoFlux|GenerateUI | ||
|Name=Play | |Name=Play | ||
|Category=Media | |Category=Media | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
{"Name":"*", "Type":" | {"Name":"*", "Type":"Call"}, | ||
{"Name":"Target", "Type":"IPlayable"} | {"Name":"Target", "Type":"IPlayable"} | ||
] | ] | ||
|Outputs= | |Outputs= | ||
[ | [ | ||
{"Name":" | {"Name":"Next", "Type":"Continuation"} | ||
] | ] | ||
|}} | |}} | ||
Play is a ProtoFlux node that plays the provided Target ([[Type:IPlayable|IPlayable]]) when * ([[Impulses|Call]]) is called. | |||
Play doesn't change the current [[ProtoFlux:Position|Position Output]], it essentially sets [[ProtoFlux:Is Playing|Is Playing Output]] to true. | |||
== Inputs == | == Inputs == | ||
=== * ([[Impulses| | === * ([[Impulses|Call]]) === | ||
Impulse this to play the provided Target ([[Type:IPlayable|IPlayable]]) | Impulse this to play the provided Target ([[Type:IPlayable|IPlayable]]) | ||
Line 28: | Line 28: | ||
== Outputs == | == Outputs == | ||
=== | === Next ([[Impulses|Continuation]]) === | ||
Sends an impulse after * ([[Impulses|Call]]) was called and it successfully started playing. | |||
== Examples == | |||
== | <gallery widths=480px heights=480px> | ||
File:ProtoFlux_example_simple_audio_playback.webp|A simple setup that allows control of the playback of an audio clip utilizing this node along with some others. | |||
</gallery> | |||
[[Category:ProtoFlux:Media]] | [[Category:ProtoFlux:Media]] |
Latest revision as of 21:31, 4 May 2024
Play
Media
Play is a ProtoFlux node that plays the provided Target (IPlayable) when * (Call) is called. Play doesn't change the current Position Output, it essentially sets Is Playing Output to true.
Inputs
* (Call)
Impulse this to play the provided Target (IPlayable)
Target (IPlayable)
The IPlayable to play.
Outputs
Next (Continuation)
Sends an impulse after * (Call) was called and it successfully started playing.
Examples
-
A simple setup that allows control of the playback of an audio clip utilizing this node along with some others.