ProtoFlux:Continuously Changing Relay: Difference between revisions

From Resonite Wiki
Add some info about the different variants of the node and which to use for certain types.
m gallery with missing photo for later
 
(One intermediate revision by one other user not shown)
Line 38: Line 38:
== Examples ==
== Examples ==


Put example pics here in a gallery.
<gallery widths=480px heights=480px>
File:Protoflux_example_Continuously_Changing_Relay.webp|Example of how to use a Continuously Changing Relay to make sure a value stays up to date where it usually wouldn't, with a short comment on it explaining why.
</gallery>


[[Category:ProtoFlux:Utility]]
[[Category:ProtoFlux:Utility]]

Latest revision as of 19:13, 11 February 2024

Continuous Relay
Input
*
Utility

This is a value/object passthrough node that is marked with the ContinuouslyChanging attribute, which means that the output of this node will be evaluated every engine update cycle, which roughly equivalates to every frame.

This node can cause lag / low performance if used excessively. Mostly you should try to avoid using it.

Use the Value variant of the node for Value Types such as Int, Bool, Float.

Use the Object variant of the node for Object Types such as Slot, User, String.

Inputs

Input (Generic)

I am an input that can be of any type.
Example inputs: Bool, Int, Slot

Outputs

* (Generic)

I am an output that evaluates continuously!

Examples