Version: 2023.2
언어: 한국어

MonoBehaviour.OnFailedToConnect(NetworkConnectionError)

매뉴얼로 전환

설명

Called on the client when a connection attempt fails for some reason.

The reason why it fails is passed in as a NetworkConnectionError enum.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnFailedToConnect(NetworkConnectionError error) { Debug.Log("Could not connect to server: " + error); } }