pub fn comp_send<T, M>(
    server: Option<ResMut<'_, Server>>,
    client: Option<ResMut<'_, Client>>,
    q: Query<'_, '_, (&NetEntity, &NetComp<T, M>, &T, ChangeTrackers<T>)>
) where
    T: Clone + Into<M> + Component,
    M: Clone + Into<T> + Any + Send + Sync
Expand description

A system that sends component T using messages of type M.

Most of the time, you will call sync_comp which will add this system. Only add it manually if you know what you are doing and want custom control over when it runs.