Skip to main content

apply_checked_bindings

Function apply_checked_bindings 

Source
pub fn apply_checked_bindings(
    store: Res<'_, PropertyStore>,
    q: Query<'_, '_, (&BindChecked, &mut Toggleable)>,
    new_binds: Query<'_, '_, (), Added<BindChecked>>,
)
Expand description

Copies PropertyStore[Global(name)] into Toggleable::checked for every BindChecked entity. Recognises Bool directly plus the canonical "true" / "1" string aliases for back-compat.