Search Unity

Question Question about unity transport instruction

Discussion in 'Unity Transport' started by student9876, Aug 30, 2023.

  1. student9876

    student9876

    Joined:
    Feb 8, 2021
    Posts:
    4
    I just followed the "Create a simple client and server" section from official instruction of unity transport 2.0.2.

    The "ServerBehaviour" and "ClientBehaviour" scripts worked well in One scene.

    But when I put the scripts in separated scenes ,build and run the application, the "ClientBehaviour" script can not connected to the "ServerBehaviour" .

    I shutted the fire wall ,it not worked either.

    why this happened? Did i missed anything?
     
  2. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    441
    Are your two scenes loaded simultaneously? Also, have you confirmed that the two drivers are both created? You can add logs in the
    Start
    and
    OnDestroy
    methods of your two scripts to track that.