The '''Cloning Reference Spatial Variable Collector`1''' component
The '''Cloning Reference Spatial Variable Collector`1''' component is part of the [[Spatial variables]] system. It works similarly to [[Component:ReferenceSpatialVariableCollector|ReferenceSpatialVariableCollector]], but specifically for components. For each component it finds at the point, it will create & maintain a duplicate. It can duplicate either just the component itself or the whole Slot it's on. The duplicates can be made Local only (it's your responsibility to make sure that the target list can reference local elements). It will never clone spatial variables present on the slot.
{{stub}}
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|CloneParent|Slot|
|CloneParent|Slot| The slot to parent cloned elements to.
|MakeClonesLocal|Bool|
|MakeClonesLocal|Bool| Whether cloned items should be on the local machine rather than networked.
|VariableName|String|
|VariableName|String| The name of the variable being sampled.
|Mode|CloneMode|
|Mode|CloneMode| How to clone elements this samples.
|ReferenceList|{{RootFieldType|DriveRef`1|[[Type:ISyncRefList`1|ISyncRefList`1]]<T>}}|TypeAdv4=true| The list of references this component has sampled at the point of the slot it is on.
}}
}}
== Usage ==
== Usage ==
Attach to a slot and bring near a set of [[Spatial variables]] to get a list of references. don't forget to add a variable name and reference list.
Cloning Reference Spatial Variable Collector`1 component as seen in the Scene Inspector
The Cloning Reference Spatial Variable Collector`1 component is part of the Spatial variables system. It works similarly to ReferenceSpatialVariableCollector, but specifically for components. For each component it finds at the point, it will create & maintain a duplicate. It can duplicate either just the component itself or the whole Slot it's on. The duplicates can be made Local only (it's your responsibility to make sure that the target list can reference local elements). It will never clone spatial variables present on the slot.