pub fn sync_resource<T: SyncResource>(
time: Res<'_, Time>,
net: ResMut<'_, NetResource>,
resource: Option<Res<'_, T>>,
state: Local<'_, SyncResourceSendState>,
)Expand description
Sends updated resources when they are added or changed.