Search Unity

Question How to use ENET and Relay Services together?

Discussion in 'Unity Transport' started by KanghyuckMoon, Jan 22, 2024.

  1. KanghyuckMoon

    KanghyuckMoon

    Joined:
    Nov 27, 2017
    Posts:
    13
  2. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    441
    No, there is no way to use them together. Basically usage of the Unity Relay service requires support for it at the transport level. The only transport that supports it currently is Unity Transport. Technically, other transports could implement that support, but today none of them do.

    Is there any particular reason you wish to use the ENet here?
     
  3. KanghyuckMoon

    KanghyuckMoon

    Joined:
    Nov 27, 2017
    Posts:
    13
    I thought using RUDP would be a better option than using TCP.
    There's no particular reason to favor ENET.
    Thanks for your answer.
     
  4. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    441
    Unity Relay is using UDP too, unless you specifically choose to use the WebSocket connection type, in which case it's going to be TCP under the hood. But otherwise it's UDP with our own reliable system on top.