Component:TypeSpatialVariableDriver

From Resonite Wiki
Component image 
File:TypeSpatialVariableDriverComponent.png
Type Spatial Variable Driver component as seen in the Scene Inspector

The Type Spatial Variable Driver component is part of the Spatial variables system. It will drive a field with value sampled at the current global position of the slot it's on. The value used is one with highest priority

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. Some components stop their functionality when this field is disabled, but some don't.
Drive reference drive of SyncType The field to drive with the sampled value.
VariableName String The variable name to sample for.
DefaultType direct SyncType The value to default to if no variable is found from sampling at the point of the slot this component is on.

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.

See Also