Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Network.proxyPassword

public static string proxyPassword;

Description

Set the proxy server password.

It is possible to make your own custom proxy server. In that case you might want to password protect it and then your Unity players must set this value appropriately.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Awake() { Network.proxyIP = "1.1.1.1"; Network.proxyPort = 1111; Network.proxyPassword = "secret"; } }
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答