Component:ValueDriver

From Resonite Wiki
Revision as of 15:26, 20 October 2024 by 989onan (talk | contribs) (add info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Value Driver`1 component as seen in the Scene Inspector


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Makes one DriveTarget's value be set to ValueSource value every game tick.

Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
ValueSource IValue`1<T> The value field to get a value from.
DriveTarget field drive of T The value field to set to the value of ValueSource.

Behavior

Examples

This is useful for a lightweight version of Value Copy to make one value equal to another, when write back isn't needed.

See Also