Version: 2017.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); } }
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961