Version: 2017.1

Network.connectionTesterIP

切换到手册
public static string connectionTesterIP ;

描述

Network.TestConnection 中使用的连接测试器的 IP 地址。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void ResetIP() { Network.connectionTesterIP = "127.0.0.1"; Network.connectionTesterPort = 10000; } }