This version of Unity is unsupported.
Method group is Obsolete

NetworkServer.FindLocalObject

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

Declaration

public static GameObject FindLocalObject(NetworkInstanceId netId);

Parameters

netId The netId of the NetworkIdentity object to find.

Returns

GameObject The game object that matches the netId.

Description

This finds the local NetworkIdentity object with the specified network Id.

Since netIds are the same on the server and all clients for a game, this allows clients to send a netId of a local game objects, and have the server find the corresponding server object.