Search Unity

Unity + NAT Facilitator

Discussion in 'Multiplayer' started by ricardokuato, Jul 30, 2014.

  1. ricardokuato

    ricardokuato

    Joined:
    Apr 7, 2014
    Posts:
    1
    Hi everyone,

    I'm trying to understand when the connection to the NAT Facilitator is established by Unity as the documentation doesn't seem to even touch on the subject which leaves plenty of room for interpretation.

    The thing is that I want to trigger a sequence of operations only when the server has connected to the NAT Facilitator.

    I'm setting the NAT settings before calling InitialiseServer and I'm passing true for the useNat parameter.

    Is it guaranteed that Unity has established the connection to the NAT Facilitator when OnServerInitialised is called (with usetNat set to true of course) ?

    Thanks in advance.