GetNATType
Namespace: SynicSugar.P2P
Class: p2pInfo
public NATType GetNATType()
Description
Get last-queried NAT-type, if it has been successfully queried.
Type detail is here.
using Cysharp.Threading.Tasks;
using UnityEngine;
using SynicSugar.P2P;
public class p2pSample : MonoBehaviour {
public async UniTask UpdateNatType(){
await p2pInfo.Instance.QueryNATType();
Debug.Log(p2pInfo.Instance.GetNATType());
}
}