The '''Reference Spatial Variable Collector`1''' component
The '''Reference Spatial Variable Collector`1''' component is specifically for reference types This drives a list of references, filling it with all the found spatial variables.
|ReferenceList|{{RootFieldType|DriveRef`1|[[Type:SyncRefList`1|SyncRefList`1]]<T>}}|TypeAdv0=true| The list to populate with the spatial variables of all spatial fields intersecting the point that is the slot this component is on.
|VariableName|String|
|VariableName|String| The variable to sample for.
|DefaultTarget|'''T'''|TypeAdv2=true|
|DefaultTarget|'''T'''|TypeAdv2=true| The value to default to when no references can be sampled at all.
}}
}}
== Usage ==
== Usage ==
Attach to a slot which will be used as the point to sample from. give a target list to drive, and the list will populate with found values
== Examples ==
== Examples ==
This can be used to collect [[Type:AudioDSP_Filter|AudioDSP_Filter]] type filters and drive a [[Component:AudioListener]]'s audio effects. This can be used to create the effect of an area like a room having echo using [[Component:ZitaReverb]]s. See [[Component:AudioListener]] for more info.
Reference Spatial Variable Collector`1 component as seen in the Scene Inspector
The Reference Spatial Variable Collector`1 component is specifically for reference types This drives a list of references, filling it with all the found spatial variables.