Skip to main content

apply_value_bindings

Function apply_value_bindings 

Source
pub fn apply_value_bindings(
    store: Res<'_, PropertyStore>,
    q: Query<'_, '_, (&BindValue, &mut SliderValue)>,
    new_binds: Query<'_, '_, (), Added<BindValue>>,
)
Expand description

Parses PropertyStore[Global(name)] as f32 and writes it into SliderValue::value (clamped to [min, max]) for every BindValue entity. Unparseable values are skipped.