Skip to content
Discussion options

You must be logged in to vote

Sorry it's not very clear, but entities can only send / receive message if:

  • they have the MessageSender or MessageReceiver component
  • the Transport component has the relevant channel registered (transport.add_sender_from_registry or transport.add_receiver_from_registry)

As a helper, I provide for convenience the add_direction method that will register the channels/messages on Client or Server entities.

In your case, you just need to add .add_direction(NetworkDirection::Bidirectional) to the channel registration

        app.add_channel::<UnorderedReliableChannel>(ChannelSettings {
            mode: ChannelMode::OrderedReliable(ReliableSettings::default()),
            ..Default::default()…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mardzie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants