Component:CloningReferenceSpatialVariableCollector

From Resonite Wiki
Component image 
File:CloningReferenceSpatialVariableCollector`1Component.png
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.

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.
CloneParent Slot The slot to parent cloned elements to.
MakeClonesLocal Bool Whether cloned items should be on the local machine rather than networked.
VariableName String The name of the variable being sampled.
Mode CloneMode How to clone elements this samples.
ReferenceList reference drive of ISyncRefList`1<T> The list of references this component has sampled at the point of the slot it is on.

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.

Examples

See Also