Component:ValueEqualityDriver

From Resonite Wiki
Revision as of 03:13, 13 November 2024 by 989onan (talk | contribs) (Add related)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Value Equality Driver`1 component as seen in the Scene Inspector

The ValueEqualityDriver component lets you drive a boolean to whether or not one value is equal to another.

Fields

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.
TargetValue direct RelayRef`1<IField`1<T>> The value being compared to Reference.
Reference T The value that TargetValue is being compared to.
Target field drive of Bool The boolean that is driven to true if TargetValue is equal to Reference and false if it isn't.
Invert Bool Whether to invert the result of TargetValue
UseApproximateComparison Bool Whether or not to use approximate comparison for types such as float, where values that seem identical can be very slightly different.

Usage

Use to drive the target boolean with whether the target's value is equal to the reference value.

Examples

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


See Also