Version: 2018.4
Obsolete public static bool ReplacePlayerForConnection (NetworkConnection conn, GameObject player, short playerControllerId);

パラメーター

connプレイヤーを追加する接続
playerプレイヤーのプレイヤーオブジェクトが生成されます。
playerControllerIdクライアントによって指定されたプレイヤーコントローラーの ID 番号

戻り値

bool プレイヤーが交代した場合、True を返します。

説明

これは別のプレイヤーオブジェクトで接続しているプレイヤーオブジェクトを置き換えます。古いプレイヤーオブジェクトは破棄されません。

If a connection already has a player object, this can be used to replace that object with a different player object. This does NOT change the ready state of the connection, so it can safely be used while changing Scenes.


Did you find this page useful? Please give it a rating: