Skip to main content

push_textinput_to_signal

Function push_textinput_to_signal 

Source
pub fn push_textinput_to_signal(
    store: ResMut<'_, PropertyStore>,
    q: Query<'_, '_, (&BindText, Ref<'_, TextContent>), (Changed<TextContent>, With<TextInput>)>,
)
Expand description

Pushes the latest TextContent back into the matching PropertyStore entry for every entity carrying both BindText and crate::components::TextInput. Filtered by Changed<TextContent> so the push only fires on user edits.