Skip to content

Setter

Groups value-setting entries under one lifecycle.

Namespace: Jungle.Data Inherits: ControllableComponentMonoBehaviour

Overview

Setter hosts a list of ISetterEntry items. Each entry assigns its own values into its own sink — a settable value backed by a local field, an asset, a DataStorage key, a component — and is responsible for its own scheduling.

The component's Begin/End starts and stops every entry together. Sibling to Reactor (which observes triggers and dispatches reactions) and Visualizer (which drives scene visuals from data).

The primary entries are the typed Set <T> entries (Set Float, Set Vector3, …). Each picks what to set on (the sink) and how via a behaviour: Copy (sample a source on a schedule), Over Time (drive via the pipeline — lerp, ease, oscillate, spring, follow-with-modifiers), Scoped (set while active, restore/clear on end), or Accumulate (add into the sink each tick). ScheduledOperationEntry remains as an advanced escape hatch for hosting arbitrary operation lists on a schedule. The old per-type FloatValueSetter/… entries and the DataStorageSetter/PipelineSetterEntry entries were removed in favour of this model.

For the "feed a single DataStorage from a list of measurements" case, Measurer is the dedicated component — it owns all measurement sub-setters.

Properties

Property Type Description
entries List<ISetterEntry> Value-setting entries grouped under this Setter. Each assigns its own values into its own sink.

See Also