This version of Unity is unsupported.
Method group is Obsolete

NetworkServerSimple.SetConnectionAtIndex

Obsolete The high level API classes are deprecated and will be removed in the future.

Declaration

public bool SetConnectionAtIndex(NetworkConnection conn);

Parameters

conn A new connection object.

Returns

bool True if added.

Description

This adds a connection created by external code to the server's list of connections, at the connection's connectionId index.

Connections are usually added automatically, this is a low-level function for the rare special case of externally created connections.