Version: 2017.3
public static void DestroyPlayerObjects (NetworkPlayer playerID);

説明

このプレイヤーに属する View ID を元に、すべてのオブジェクトを破棄します

This should only be called when running as a server. It is, for example, meant to to clean up networked objects left by a disconnected player.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnPlayerDisconnected(NetworkPlayer player) { Debug.Log("Clean up after player " + player); Network.RemoveRPCs(player); Network.DestroyPlayerObjects(player); } }