Skip to main content

from_component_option

Function from_component_option 

Source
pub fn from_component_option<C>(
    entity: impl Into<Entity> + Send + Sync + 'static,
) -> impl Signal<Item = Option<C>> + Clone
where C: Component + Clone,
Expand description

Creates a Signal from an Entity or LazyEntity and a Component, always outputting an Option.