Version: 2018.1
public static void InitializeSecurity ();

説明

セキュリティ情報を初期化します

Network.InitializeServer. を呼び出す前に、この関数をサーバー上に呼び出す必要があります。クライアント上にはこの関数を呼び出さないでください。

Once your online game reaches a certain popularity people will try to cheat. You will need to account for this both at the game layer and at the network layer. Unity handles the network layer by providing secure connections if you wish to use them. (* この接続は AES 暗号を使用しており、不正読み込みを防止し、リプレイアタックをブロックします。 * CRC を追加してデータ改ざんの検知を可能にします。 * 不正ログインを防ぐため、任意抽出されて暗号化された SYNCookies を使用します。 * Uses RSA encryption to protect the AES key. Most games will want to use secure connections. However, they add up to 15 bytes per packet and take time to compute so you may wish to limit usage to deployed games only.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Start() { Network.InitializeSecurity(); Network.InitializeServer(32, 25000); } }