(Redirected from Component:ReferenceEqualityDriver`1)
Component image
The ReferenceEqualityDriver component checks the equality of two objects and says whether they are equal. For objects that define their own behavior for checking Equality (Like Bounding boxes) this will check based on that logic (for Bounding boxes they only need to be numerically equal, like being the same size and center).
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. |
TargetReference
|
direct RelayRef`1<SyncRef`1<T>> | The reference to check. |
Reference
|
T | The reference to use as a thing to compare against. |
Target
|
field drive of Bool | The boolean field to drive to whether TargetReference and Reference are equal. Doesn't always mean they are the exact same object.
|
Invert
|
Bool | Whether to invert the result sent to Target .
|
Usage
Attach to a slot and provide a reference object to check against, or provide nothing to check against if null or not null. Then put in a field to check for a reference inside of, and the component will start working.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.