Component image File:ReferenceSpatialVariableDriver`1Component.pngReference Spatial Variable Driver`1 component as seen in the Scene Inspector
The Reference Spatial Variable Driver`1 component gets the closest reference value in the Spatial variables system and drives a field with it.
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. Some components stop their functionality when this field is disabled, but some don't. |
Drive
|
direct RefDrive`1<T> | The field to drive. |
VariableName
|
String | The variable name to sample for. |
DefaultTarget
|
T | The value to default to when no reference can be sampled. |
Usage
Attach to a slot and provide a field to drive and a variable name. the slot this component is on acts as the position for sampling variable values.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.